NetworkX

Previous topic

networkx.generators.directed.gnr_graph

Next topic

networkx.generators.directed.scale_free_graph

networkx.generators.directed.gnc_graph

networkx.generators.directed.gnc_graph(n, create_using=None, seed=None)

Return the GNC digraph with n nodes.

The GNC (growing network with copying) graph is built by adding nodes one at a time with a links to one previously added node (chosen uniformly at random) and to all of that node’s successors.

Parameters :

n : int

The number of nodes for the generated graph.

create_using : graph, optional (default DiGraph)

Return graph of this type. The instance will be cleared.

seed : hashable object, optional

The seed for the random number generator.

References

[R108]P. L. Krapivsky and S. Redner, Network Growth by Copying, Phys. Rev. E, 71, 036118, 2005k.},