jeudi 31 août 2017

Randomizing NetworkX output

Suppose I have a nx.Graph object g that has two or more cycles. If I call nx.find_cycle, the output is always the same. I wonder if there is a built-in way to randomize the output, say, by accessing the NetworkX internal random state. The find_cycles function is just an example, I am interested in randomizing output of other NetworkX functions as well.




Aucun commentaire:

Enregistrer un commentaire