Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
NotATree
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.