igraph-help
[Top][All Lists]
Advanced

[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:21:41 -0500

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



reply via email to

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