mercredi 23 juin 2021

Configuration model in Python

I am trying to generate an uncorrelated random graph whose degree distribution follow a power law.

I generated a degree sequence (that follows a power law distribution with a fixed minimum and maximum degree). Now I need to generate a graph (with configuration model).

I can't use the network function nx.configuration_model because I can't have selfloop and parallel edges.

Is there is a function of networkx that can generate this graph?




Aucun commentaire:

Enregistrer un commentaire