graphbin.exceptions module¶
Exceptions for the GraphBin algorithm.
- exception graphbin.exceptions.GraphBinNotInitializedError(message='The GraphBin algorithm is not initialized. Please run `GraphBin.from_scratch()` to initialize the instance.')[source]¶
Bases:
Exception
Exception raised when the GraphBin instance has not been initialized with a source graph.
To initialize GraphBin, call GraphBin.from_scratch(…).
- exception graphbin.exceptions.TooManyClustersError(message='The number of nodes in the synthetic graph is smaller than the number of bins. This is not allowed.')[source]¶
Bases:
Exception
Exception raised when the number of requested clusters is larger than the number of nodes in the synthetic graph.