I'm sure, but can't speak authoritatively. xml is definately what you want to save it in. On Dec 28, 2014 12:29 AM, "Helen Lampesis" <eukolomnimonitos@gmail.com> wrote:
Hi,
Thanks fro the prompt reply.
I might consider refactoring the code by using the graph.save function.
To that end, if I save a graph in an xml format, with older versions of graph_tool (e.g., 2.32.2) is it still guaranteed that all the property maps will be stored correctly with it? With such an old version I cannot save it in the most new formats.
Thanks a lot! Helen
On Dec 27, 2014, at 10:05 PM, ... <offonoffoffonoff@gmail.com> wrote:
graph.save('filename.xml') On Dec 27, 2014 9:45 PM, "Helen Lampesis" <eukolomnimonitos@gmail.com> wrote:
Hi everyone,
The following code snippet gives me a TypeError and I am wondering if you have any suggestion.
------------------------------------------------ import graph_tool as gt import pickle
g = gt.Graph() pickle.dump(g, open('test_file', 'w’)) ------------------------------------------------
The error: TypeError: coercing to Unicode: need string or buffer, _io.BytesIO found
I am working on Yosemite OS with graph_tool 2.2.35 (installed via macports).
Thank you very much and happy new year!! Helen
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool