Abstract
Enumeration of spanning trees of an undirected graph is one of the graph problems that has received much attention in the literature. In this paper a new enumeration algorithm based on the idea of contractions of the graph is presented. The worst-case time complexity of the algorithm isO(n+m+nt) wheren is the number of vertices,m the number of edges, andt the number of spanning trees in the graph. The worst-case space complexity of the algorithm isO(n 2). Computational analysis indicates that the algorithm requires less computation time than any other of the previously best-known algorithms.
Similar content being viewed by others
References
A. V. Aho, J. E. Hopcroft and J. U. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Mass. (1974).
J. P. Char,Generation of trees, two-trees and storage of master forests, IEEE Trans. Circuit Theory, CT-15 (1968), 128–138.
S. M. Chase,Analysis of algorithms for finding all spanning trees of a graph, RC3190, IBM T. J. Watson Research Center, Yorktown Heights, N.Y. (1970).
H. N. Gabow and E. W. Myers,Finding all spanning trees of directed and undirected graphs, SIAM J. Comput., 7 (1978), 280–287.
S. L. Hakimi and D. G. Green,Generation and realization of trees and k-trees, IEEE Trans. Circuit Theory, CT-11 (1964), 247–255.
F. Harary,Graph Theory, Addison-Wesley, Reading (1969).
R. Jayakumar and K. Thulasiram,Analysis of a spanning tree enumeration algorithm inCombinatorics and Graph Theory, Sprnger-Verlag, Lect. Notes in Mathematics Nr. 833 (1980), 284–289.
W. Mayeda and S. Sehu,Generation of trees without duplications, IEEE Trans. Circuit Theory, CT-12 (1965), 181–185.
W. Minty,A simple algorithm for listing all the trees of a graph, IEEE Trans. Circuit Theory, CT-12 (1965), 120.
R. C. Read and R. E. Tarjan,Bounds on backtrack algorithms for listing cycles, paths and spanning trees, Networks, 5 (1975), 237–252.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Winter, P. An algorithm for the enumeration of spanning trees. BIT 26, 44–62 (1986). https://doi.org/10.1007/BF01939361
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01939361