igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] igraph_community_to_membership() function


From: Guilherme Ferraz de Arruda
Subject: Re: [igraph] igraph_community_to_membership() function
Date: Mon, 22 Nov 2010 17:37:12 -0200

thanks

2010/11/22 Gábor Csárdi <address@hidden>:
> Hi,
>
> 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'.
>
> Best,
> Gabor
>
>> 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
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



reply via email to

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