Minimum weight spanning forest