Implementation of `__setstate__` is unfriendly to inherithing the Graph class
Graph.__setstate__
calls self.init()
which can throw errors on subclasses that need parameters for __init__
.
To avoid problems in classes that inherit from Graph
and redefine __getstate__
and __setstate__
calling super accordingly, a workaround could be to call Graph.init(self)
.