Bruce
Bruce

Reputation: 35233

Python :How to generate a power law graph

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

Answers (1)

clstaudt
clstaudt

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

Related Questions