[boost] [BGL] Performance improvement for minimum spanning tree algo