From 722cb5c48f1b0eefb6b492f81eded5399f30c2e3 Mon Sep 17 00:00:00 2001 From: holden watson Date: Mon, 11 Nov 2019 20:55:45 -0500 Subject: Added basic connectedness scripts --- final/connectedness/test_display.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 final/connectedness/test_display.py (limited to 'final/connectedness/test_display.py') diff --git a/final/connectedness/test_display.py b/final/connectedness/test_display.py new file mode 100644 index 0000000..3b45d59 --- /dev/null +++ b/final/connectedness/test_display.py @@ -0,0 +1,8 @@ +from matplotlib import pyplot as plt +import networkx as nx + +G = nx.random_geometric_graph(200, 0.125) + +nx.draw(G, node_size = 20) +plt.savefig("graph.png") +plt.show() \ No newline at end of file -- cgit