On 10/11/2011 11:19 AM, Giuseppe Profiti wrote:
I purged all the label attributes, so it has become an "anonymous" graph. This is the trace of the python console: as you can see, nodes, edges and properties are correctly loaded
g = load_graph('my.graph.xml.gz') g.num_vertices() 153 g.num_edges() 1786 g.list_properties() L (graph) (type: double, val: 1554100010.16) C(1) (graph) (type: python::object, val: (0.4511453168253582, 0.018514982664053672)) Cdepth (graph) (type: int32_t, val: 3) C(2) (graph) (type: double, val: 0.720623810024) label (graph) (type: string, val: my.graph) h (vertex) (type: string) weight (edge) (type: double) bl (edge) (type: double) identity (edge) (type: double)
but when I save it, the output is corrupted. Just a side note: I'm running ubuntu on virtualbox.
I loaded your graph, and saved it in both formats and everything came out fine. I even tried on an ubuntu machine, and everything worked just as well. I have been saving and loading graphs repeatedly, on diverse machines (with Gentoo, Debian, MacOS), clusters nodes, etc, and I've never observed this problem. I'm inclined to believe this is due to something peculiar on your setup. The fact it is running on a virtual machine is maybe relevant... Have you observed any other problems? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>