[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Graph attributes other than via graph_attrs
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] Graph attributes other than via graph_attrs |
Date: |
Tue, 2 Feb 2010 23:55:02 +0000 |
Dear Johannes,
> I have searched the archives but could not find out whether it is possible to
> attach graph attributes other than at the time of graph-creation
Yes, it is possible. Just try to use the graph as an ordinary Python dictionary:
g = igraph.Graph()
g["date"] = "02/02/2010"
g["creator"] = "igraph 0.5.3"
Attributes assigned this way get pickled and then unpickled; they are also
preserved when exporting the graph to GraphML.
--
Tamas