Minimum spanning trees in networks with varying edge weights