igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] how to add vertex and edge attributes


From: Tamas Nepusz
Subject: Re: [igraph] how to add vertex and edge attributes
Date: Mon, 29 Dec 2008 23:28:13 +0100

Dear Simone,

what is the right sintax to add vertex or edge attributes to a graph?
It's as simple as:
g.es[edgeidx]["prova"] = 1

Or if you want to assign attribute values to all the edges at once:

g.es["prova"] = [1,2,3,4,5] (assuming that you have 5 edges)

--
T.





reply via email to

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