[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] dendrogram: leaf names and vertice labels
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] dendrogram: leaf names and vertice labels |
Date: |
Thu, 10 Mar 2011 14:31:12 -0500 |
Not stupid at all. This is not documented, and I had to read the
source code to find it out. Far from stupid and far from obvious.
Gabor
On Thu, Mar 10, 2011 at 2:27 PM, Glazko, Galina V <address@hidden> wrote:
> Gabor,
>
> Thank you, indeed!!!
> Sorry about the stupid question.
>
> Best regards
> Galina
>
> -----Original Message-----
> From: address@hidden [mailto:address@hidden On Behalf Of Gábor Csárdi
> Sent: Thursday, March 10, 2011 1:22 PM
> To: Help for igraph users
> Cc: Glazko, Galina V
> Subject: Re: [igraph] dendrogram: leaf names and vertice labels
>
> On Thu, Mar 10, 2011 at 9:46 AM, Glazko, Galina V <address@hidden> wrote:
>> Dear all,
>>
>>
>>
>> Using Gabor's suggestion I constructed a dendrogram for fast-greedy:
>>
>>
>>
>> s.w<-fastgreedy.community(s)
>>
>> dend <- igraph:::as.dendrogram.igraph.walktrap(s.w)
>>
>>
>>
>> What I do not understand is what are the leaf names there, on dendrogram?
>>
>> How I can get dendrogram' leaf names to be vertice labels, i.e. V(s)$label?
>
> Assign them as the 'labels' entry to the object returned by
> fastgreedy.community():
>
> s.w$labels <- V(s)$label
> dend <- ...
>
>>
>> When the dendrogram is constructed e.g. using
>>
>> s.w<-walktrap.community(s)
>>
>> dend <- as.dendrogram(s.w, use.modularity=TRUE)
>>
>>
>>
>> leaf names already correspond to vertice names. But in the former case they
>> probably correspond to merge IDs?
>
> They are numeric vertex ids in the former case.
>
> Best,
> Gabor
>
>>
>>
>> I would appreciate your hints.
>>
>> Thank you!
>>
>>
>>
>> Best regards
>>
>> Galina
>>
>> Confidentiality Notice: This e-mail message, including any attachments,
>> is for the sole use of the intended recipient(s) and may contain
>> confidential and privileged information. Any unauthorized review,
>> use, disclosure or distribution is prohibited. If you are not the
>> intended recipient, please contact the sender by reply
>> e-mail and destroy all copies of the original message..
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/igraph-help
>>
>>
>
>
>
> --
> Gabor Csardi <address@hidden> UNIL DGM
> Confidentiality Notice: This e-mail message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain
> confidential and privileged information. Any unauthorized review,
> use, disclosure or distribution is prohibited. If you are not the
> intended recipient, please contact the sender by reply
> e-mail and destroy all copies of the original message..
>
>
--
Gabor Csardi <address@hidden> UNIL DGM