NetworkX

Previous topic

networkx.generators.directed.scale_free_graph

Next topic

networkx.generators.hybrid.kl_connected_subgraph

networkx.generators.geometric.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.