Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

# networkx.algorithms.tree.coding.NotATree¶

exception NotATree[source]

Raised when a function expects a tree (that is, a connected undirected graph with no cycles) but gets a non-tree graph as input instead.