On Wed, Feb 8, 2012 at 6:50 PM, kaledje blaise <
address@hidden> wrote:
Hi
Is it possible to get and set nodes and edges attributes with the python
interface?
First, please excuse my original top-post. Second, I hit send too soon.
If you want to set/update attributes, you can use
v['attrname'] = value
or just
variable = v['attrname']
And the same thing works for edges, too.
If you want to just read attributes, you can use something like
attr = v.attributes()
and then look in attr, but it doesn't help for updating the attributes
on the vertex/edge, and it really doesn't buy you anything.
Justin
_______________________________________________
igraph-help mailing list