Exception thrown when a graph-structural precondition is violated.
Some graph algorithms make only sense on specially structured graphs, like,
e.g., trees, DAGs (short for directed acyclic graph), or planar graphs.
Methods that detect graph-structural mismatch will throw this exception then.