[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Labelling vertices with name while plotting graph
From: |
sloiseau |
Subject: |
Re: [igraph] Labelling vertices with name while plotting graph |
Date: |
Wed, 13 Jun 2007 09:31:48 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
> On Tue, Jun 12, 2007 at 11:28:45PM +0200, address@hidden wrote:
>> > ...vertex labels can be controlled by either the "label" attribute
>> > attached to the vertices (and not "name" as written in the webpage you
>> > mentioned - it might be a little bit out of date)
>>
>> PS : when I read a graph using :
>>
>> m <- read.table("foo.txt");
>> g1 <- graph.data.frame(m);
>>
>> with m containing a list of edges :
>>
>> var1 var2 weight
>> a rien 2.0
>> a ignorant 1.0
>> a alphabet 1.0
>> a lettre 1.0
>>
>> The constructor create an attribute "name" on vertices. Isn'it
>> inconsistent?
>
> Sylvian, you might call it inconsistent, the 'name' of the vertices is
> not neccessarily the same as their 'label' depending what one means on
> 'name' and 'label'. You can always do V(g1)$label <- V(g1)$name or call
> plot with vertex.label=V(g)$name if you like.
Yes of course; I was wondering if this was voluntary.
> Btw. you might find some more little "irritating" things in igraph
> (this is beta software and constantly under development),
> please report them (if you like). Thanks.
Up to now I have find that it is an outstanding and *very* useful piece of
software... :-)
Thanks!
Sylvain