igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Random regular graph


From: Tamás Nepusz
Subject: Re: [igraph] Random regular graph
Date: Wed, 12 Sep 2012 16:01:46 +0200

> Thanks. The nice thing about networkx is that you also get the source
> http://networkx.lanl.gov/_modules/networkx/generators/random_graphs.html#random_regular_graph
> (which in this case is particularly short and simple).

An even nicer thing is that you can rip the function out of NetworkX and simply 
replace the G.add_edges_from(edges) part with "return igraph.Graph(n, edges)" 
to have the same algorithm in igraph as a temporary solution :)

Best,
Tamas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]