views:

242

answers:

1

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

+1  A: 

Have you looked at the examples on the Networkx site? This example might help you get started with this.

There are also a number of functions within Networkx which generate random graphs which will probably be helpful. Have a look for the random_powerlaw_tree(....) function detailed in the graph generators section of the documentation.

Binary Nerd