[igraph] dict attributes not saved in graphml files?
From:
Giovanni Marco Dall'Olio
Subject:
[igraph] dict attributes not saved in graphml files?
Date:
Fri, 20 Jul 2012 12:20:37 +0200
Hello, I have a problem when storing graphs as graphml files using the python igraph library. It seems that when I store a graph as a graphml file, all the attributes that are based on python dictionaries are lost.
What's happening? Why 'dict_attribute' is missing? It seems that the problem is in the write_graphml function, because if I open the file mygraph.graphml, dict_attribute is not there. In the 0.5.4 version, dictionary attributes were stored as strings, and I could retrieve them using the ast.as_literal function.
I am using igraph 0.6 and the python library python-igraph-0.6, which is
the one that is installed automatically by easy_install.
Thank you very much in advance, Gio
-- Giovanni Dall'Olio, phd student IBE, Institut de Biologia Evolutiva, CEXS-UPF (Barcelona, Spain)