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: Glazko, Galina V
Subject: RE: [igraph] dendrogram: leaf names and vertice labels
Date: Thu, 10 Mar 2011 13:27:20 -0600

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..




reply via email to

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