rez.vendor.pygraph.classes.exceptions¶
Exceptions.
- exception rez.vendor.pygraph.classes.exceptions.GraphError¶
Bases:
RuntimeErrorA base-class for the various kinds of errors that occur in the the python-graph class.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception rez.vendor.pygraph.classes.exceptions.AdditionError¶
Bases:
GraphErrorThis error is raised when trying to add a node or edge already added to the graph or digraph.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception rez.vendor.pygraph.classes.exceptions.NodeUnreachable¶
Bases:
GraphErrorGoal could not be reached from start.
- __init__(start, goal)¶
- classmethod __new__(*args, **kwargs)¶
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception rez.vendor.pygraph.classes.exceptions.InvalidGraphType¶
Bases:
GraphErrorInvalid graph type.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception rez.vendor.pygraph.classes.exceptions.AlgorithmError¶
Bases:
RuntimeErrorA base-class for the various kinds of errors that occur in the the algorithms package.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception rez.vendor.pygraph.classes.exceptions.NegativeWeightCycleError¶
Bases:
AlgorithmErrorAlgorithms like the Bellman-Ford algorithm can detect and raise an exception when they encounter a negative weight cycle.
@see: pygraph.algorithms.shortest_path_bellman_ford
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.