dist_map : :class:`~graph_tool.VertexPropertyMap`
     Vertex property map with the distances from ``source`` to all other
vertices.
  pred_map : :class:`~graph_tool.VertexPropertyMap`
     Vertex property map with the predecessors in the search tree.
You can determine these values using the function shortest_distance():
   dist_map, pred_map = shortest_distance(g, source=u, pred_map=True)