Fixed bug in ToGraphMP related to incorrect allocation of edge list sizes