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