Paper record
W2022871748Finding All Spanning Trees of Directed and Undirected Graphs
Harold N. Gabow, Eugene W. Myers
- Year
- 1978
- Venue
- SIAM Journal on Computing
- References
- 10
- Cited by
- 208
Details and counts from OpenAlex.
Abstract
An algorithm for finding all spanning trees (arborescences) of a directed graph is presented. It uses backtracking and a method for detecting bridges based on depth-first search. The time required is and the space is , where V, E, and N represent the number of vertices, edges, and spanning trees, respectively. If the graph is undirected, the time decreases to , which is optimal to within a constant factor. The previously best-known algorithm for undirected graphs requires time .