This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.


Base exceptions and errors for NetworkX.

class NetworkXException[source]

Base class for exceptions in NetworkX.

class NetworkXError[source]

Exception for a serious error in NetworkX

class NetworkXPointlessConcept[source]

Harary, F. and Read, R. “Is the Null Graph a Pointless Concept?” In Graphs and Combinatorics Conference, George Washington University. New York: Springer-Verlag, 1973.

class NetworkXAlgorithmError[source]

Exception for unexpected termination of algorithms.

class NetworkXUnfeasible[source]

Exception raised by algorithms trying to solve a problem instance that has no feasible solution.

class NetworkXNoPath[source]

Exception for algorithms that should return a path when running on graphs where such a path does not exist.

class NetworkXUnbounded[source]

Exception raised by algorithms trying to solve a maximization or a minimization problem instance that is unbounded.