[Top][All Lists]

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

Re: [igraph] igraph_community_to_membership() function

From: Gábor Csárdi
Subject: Re: [igraph] igraph_community_to_membership() function
Date: Mon, 22 Nov 2010 18:11:56 +0100


On Mon, Nov 22, 2010 at 6:08 PM, Guilherme Ferraz de Arruda
<address@hidden> wrote:
> Hi,
> i'm trying to use the igraph_community_to_membership() function, but i
> can't  understand the membership vector. At the documentaion they say:
> "A membership vector contains for each vertex the id of its graph
> component, the graph components are numbered from zero."
> is the vertex id the same as the index of the vector??

yes, VECTOR(membership)[i] is the community of vertex 'i'.


> for example:
> com = (long int)VECTOR(membership)[i];
> "com" is the community number of the vertex "i"??
> Thanks for all.
> Guilherme
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     UNIL DGM

reply via email to

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