aboutsummaryrefslogtreecommitdiff
path: root/final/connectedness/test_display.py
diff options
context:
space:
mode:
authorholden watson <holdenew@gmail.com>2019-11-11 20:55:45 -0500
committerholden watson <holdenew@gmail.com>2019-11-11 20:55:45 -0500
commit722cb5c48f1b0eefb6b492f81eded5399f30c2e3 (patch)
tree27bf2ccad64821452d0ab4c31102c2f2506a089c /final/connectedness/test_display.py
parent3d51c1b6b8a3db6971a16d9cdd08f74b0e5c9287 (diff)
Added basic connectedness scripts
Diffstat (limited to 'final/connectedness/test_display.py')
-rw-r--r--final/connectedness/test_display.py8
1 files changed, 8 insertions, 0 deletions
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