igraph-help
[Top][All Lists]
Advanced

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

[igraph] Graph attributes other than via graph_attrs


From: Johannes Reichold
Subject: [igraph] Graph attributes other than via graph_attrs
Date: Wed, 03 Feb 2010 00:07:38 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Dear iGraphers,

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 via graph_attrs=<dictionary of attributes>. I have tried (crudely) to do something like this:
import igraph
g = igraph.Graph()
g.myAttribute = <some fancy attribute>

which works perfectly. Only, whenever I try to copy or pickle the graph, these attributes get stripped. Usage of graph_attrs does not suffer from this problem but is less flexible, as you need to define the attributes at the time of initialization. Am I missing something obvious here? Please help me out.
Best,
Johannes




reply via email to

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