Previous topic

albert_barabasi_physrevlett_rigid

This Page

powerlaw_degree_sequence

nepidemix.utilities.networkxtra.powerlaw_degree_sequence(n, a)

Create a graph without self-loops or parallel edges; having power law degree distribution with an exponent ‘around’ a.

Parameters :

n : int

Number of nodes in graph.

a : float

Ideal exponent.

Returns :

G : networkx.Graph

The constructed graph.