There is an index slip in the source: starting with and performing steps produces the final graph . Write for that final graph. The literal assertion for can fail: take a triangle with , , . Before the final step the extra edge remains; only the final deletion removes it.
The invariant is that and remain connected. Choose a simple graph path in . If an edge of did not lie in , then at its processing time was still present and avoided that edge. The algorithm would therefore have deleted it, a contradiction. Thus every edge of lies in . The final graph is precisely an path and possibly isolated vertices.

Articles by others on the same topic (0)

There are currently no matching articles.