Improved graph and mst implementations with edge-list