This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
Searches a graph and yields all the minimum spanning trees in order of increasing cost. | |
This could be used to solve minimum spanning trees with constraints by yielding trees until | |
we reach the first one which satisfies a constraint. | |
For example it could solve the degree constrained minimum spanning tree DCMST | |
''' |