Hi, On 06/04/2012 10:52 PM, Héctor Urbina wrote: > Hello, > > I got this error when trying to save a graph to a file: [...] > RuntimeError: Pickling of "graph_tool.libgraph_tool_core.Edge" > instances is not enabled > (http://www.boost.org/libs/python/doc/v2/pickle.html)
Edge (and Vertex) descriptors cannot be pickled. If you have property maps which store Edge or Vertex descriptors, you have to convert them to int pairs (for Edge) or int (for Vertex), and then recover them later with Graph.edge() and Graph.vertex(). Cheers, Tiago -- Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
