I want to run prim on a graph from a file, but with certain inputs prim_minimum_spanning_tree gives me a segmentation fault. The segfault doesn\'t occur when i run it with v