igraph-help
[Top][All Lists]
Advanced

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

[igraph] why is igraph_rewire_edges so fast?


From: sizheng0320
Subject: [igraph] why is igraph_rewire_edges so fast?
Date: Fri, 11 Dec 2015 12:28:49 +0800

Hi everyone,

has anyone read the code of the function igraph_rewire_edges?

i'm doing this because i wonder why this function rewires a large network so fast. 

it seems some indexing technique is used, because i have seen in the function igraph_i_rewire_edges_no_multiple in games.c, some vectors such as first, next, prev are used. 

though i tracked the code with a small network of 5 nodes and 6 edges, i still don't understand the meaning of the three vectors. How do they work, please?

Thanks a lot!

Gang Lu

reply via email to

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