AlgoWiki

Pseudoforest

A pseudoforest is an undirected graph in which every connected component has at most one cycle

Intuition: If a connected undirected graph on nn vertices has n1n-1 edges, then it is a tree. If a connected undirected graph on nn vertices has nn edges, then it has exactly one cycle (i.e. an underlying tree, with an additional edge which closes the cycle). Hence, a pseudoforest consists of connected components, where each component on kk vertices consists of either k1k-1 or kk edges.

Directed pseudoforests

The concept of a pseudoforest can also be extended to include directed graphs. A directed pseudoforest is a directed graph in which each vertex has at most one outgoing edge; that is, it has outdegree at most one. In the special case where each vertex has outdegree exactly one, the graph is called a functional graph

Problems

See also