[graph-tool] Segmentation fault using shortest_distance