Module pywander.algorithm.graph.exceptions

Classes

class AdditionError (*args, **kwargs)

This error is raised when trying to add a node or edge already added to the graph or digraph.

Expand source code
class AdditionError(GraphError):
    """
    This error is raised when trying to add a node or edge already added
    to the graph or digraph.
    """
    pass

Ancestors

  • GraphError
  • builtins.Exception
  • builtins.BaseException
class GraphError (*args, **kwargs)

A base-class for the various kinds of errors that occur in the the graph class.

Expand source code
class GraphError(Exception):
    """
    A base-class for the various kinds of errors that occur in the the graph class.
    """
    pass

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class NotAcyclicError (*args, **kwargs)

not acyclic graph error

Expand source code
class NotAcyclicError(GraphError):
    """
    not acyclic graph error
    """
    pass

Ancestors

  • GraphError
  • builtins.Exception
  • builtins.BaseException