Forest (graph)maths graph-theory ForestA graph is a forest if each of its connected components is a tree.