Two Algorithms for Generating Weighted Spanning Trees in Order | Synapse