a RuntimeError I don't understand

Vertex and Edge descriptor objects are supposed to be lightweight, and they
contain only a C++ pointer to the specific graph view to which they refer.
This means that they cannot be pickled, as the parent Graph (Python) object
cannot be resolved.

If you want to pickle Vertex objects, you should convert them to ints first.


I presume that the block model could be picked because it contains a whole graph, not 'naked' vertices?

attachment.html (2.61 KB)