Within each connected component with vertices, grow a tree by starting at one vertex and repeatedly adding an edge to an unreached vertex. Connectedness guarantees such an edge until every vertex has been reached. Exactly edges are added, so the component contains at least that many edges. Summing over the components givesThe selected trees form a spanning forest, and equality holds precisely when the original graph itself is a forest.
Articles by others on the same topic
There are currently no matching articles.