igraph-help
[Top][All Lists]
Advanced

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

[igraph] Save vertex property


From: Николай Кинаш
Subject: [igraph] Save vertex property
Date: Wed, 14 Jan 2015 21:36:54 +0900

Hello

>>> graph = ig.Graph()
>>> graph.add_vertex()
>>> graph.vs[0]["age"] = 55
>>> graph.vs[0]["age"]
55
>>> graph = ig.Graph().Barabasi(graph.vcount()+3, 3, power=2.5, start_from=graph, outpref=True)
>>> graph.vs[0]["age"]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'Attribute does not exist'


It is possible to save "age" property after ig.Graph().Barabasi ?


Thanks.

reply via email to

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