aboutsummaryrefslogtreecommitdiff
path: root/final/connectedness/test_display.py
blob: 3b45d59f9101d7db713003029ace5722d782e91e (plain)
1
2
3
4
5
6
7
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()