Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

Exceptions#

rustworkx.DAGHasCycle

The specified Directed Graph has a cycle and can't be treated as a DAG.

rustworkx.DAGWouldCycle

Performing this operation would result in trying to add a cycle to a DAG.

rustworkx.FailedToConverge

Failed to Converge on a solution

rustworkx.GraphNotBipartite

Graph is not bipartite

rustworkx.InvalidMapping

No mapping was found for the request swapping

rustworkx.InvalidNode

The provided node is invalid.

rustworkx.JSONDeserializationError

JSON Deserialization Error

rustworkx.JSONSerializationError

JSON Serialization Error

rustworkx.NegativeCycle

Negative Cycle found on shortest-path algorithm

rustworkx.NoEdgeBetweenNodes

There is no edge present between the provided nodes.

rustworkx.NoPathFound

No path was found between the specified nodes.

rustworkx.NoSuitableNeighbors

No neighbors found matching the provided predicate.

rustworkx.NullGraph

Invalid operation on a null graph

rustworkx.visit.PruneSearch

Prune part of the search tree while traversing a graph.

rustworkx.visit.StopSearch

Stop graph traversal