NetworkX

Previous topic

networkx.scale_free_graph

Next topic

networkx.kl_connected_subgraph

networkx.random_geometric_graph

random_geometric_graph(n, radius, create_using=None, repel=0.0, verbose=False, dim=2)

Random geometric graph in the unit cube

Returned Graph has added attribute G.pos which is a dict keyed by node to the position tuple for the node.