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.

exception graphbin.exceptions.ZeroValuesError(message='Value cannot contains zeros.')[source]

Bases: ValueError

Exception raised when an input contains zero values, which the operation does not support.