I'm sure, but can't speak authoritatively. xml is definately what you want to save it in.
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!HelenOn 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 gtimport pickleg = gt.Graph()pickle.dump(g, open('test_file', 'w’))------------------------------------------------The error: TypeError: coercing to Unicode: need string or buffer, _io.BytesIO foundI 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