rez.vendor.pygraph.classes.exceptions

Exceptions.

exception rez.vendor.pygraph.classes.exceptions.GraphError

Bases: RuntimeError

A 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: GraphError

This 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: GraphError

Goal 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: GraphError

Invalid 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: RuntimeError

A 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: AlgorithmError

Algorithms 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.