Hi all,
what is the best way to generate a random graph from a given degree sequence?
``gt.random_graph`` has lots of features, but I can't find a way to provide a degree sequence.
I appreciate your help, Matthias
On 04/16/2013 05:18 PM, Matthias Ekman wrote:
Hi all,
what is the best way to generate a random graph from a given degree sequence?
degs = [7, 4, 3, 4, 8, 5, 9, 7, 4, 1] g = random_graph(10, lambda i: degs[i], directed=False)
Cheers, Tiago
Thanks Tiago!
On Tuesday, 16 April 2013 22:49:26 UTC+2, Tiago Peixoto wrote:
On 04/16/2013 05:18 PM, Matthias Ekman wrote:
Hi all,
what is the best way to generate a random graph from a given degree
sequence?
degs = [7, 4, 3, 4, 8, 5, 9, 7, 4, 1] g = random_graph(10, lambda i: degs[i], directed=False)
Cheers, Tiago
-- Tiago de Paula Peixoto <ti...@skewed.de javascript:>
graph-tool mailing list graph...@skewed.de javascript: http://lists.skewed.de/mailman/listinfo/graph-tool