igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Add Vertex Attribute to Weighted Graph


From: Tamas Nepusz
Subject: Re: [igraph] Add Vertex Attribute to Weighted Graph
Date: Sat, 25 Apr 2009 10:51:22 +0100

Hi,

Try:
>>> g.vs["label"] = ["A", "B", "C"]

(of course you have to specify a list which has exactly as many elements as the number of your vertices)

--
T.

On 2009.04.24., at 23:28, Hao Xiong wrote:

Hi,

I have a weighted graph generated from adjacency matrix and I would like
to add labels to vertices.
Function Graph.Weight_Adjacency does not have an option for it and the
constructor only takes
edge list, which creates unweighted graphs.

Thanks in advance,
Hao


_______________________________________________
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]