Reputation: 35233
I have installed networkx and matplotlib packages. How can I generate a power law graph based on degree correlation i.e. graphs with high or low degree of homophily
Upvotes: 2
Views: 4229
Reputation: 22438
networkx.generators.barabasi_albert_graph
will generate a graph according to the Barabasi-Albert model, which will have a power-law degree distribution.
Upvotes: 0