Hello everyone,
I am looking at the various methods available in igraph to *uniformly*
sample random graphs with a given degree sequence. The obvious candidate
function is igraph_degree_sequence_game().
http://igraph.org/c/doc/igraph-Generators.html#igraph_degree_sequence_game
This function
Just to let you know that I found a solution to my problem. The function I was
looking for is 'cut_at()'.
So the simple line
> membership <- cut_at(com, 5)
gives me the desired membership for level 5.
Hope this will help someone else in the future.
Cheers,
Thea
From: igraph-help