igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] randomize networks


From: Tamas Nepusz
Subject: Re: [igraph] randomize networks
Date: Sun, 3 Jan 2010 10:15:13 +0100

> I want to generate a randomized null-model in which the degrees of all nodes 
> are preserved (as in the Maslov-Sneppen model).
> Is there any easy way to randomize a directed network in igraph?
Yes. See igraph_rewire in the C core, Graph.rewire() in Python or rewire() in 
the R interface. Alternatively, use igraph_degree_sequence_game or its 
corresponding functions to generate a simple graph given the degree 
distribution (this does not use rewiring but creates a graph from scratch).

-- 
Tamas





reply via email to

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