Template Function graspi::determine_shortest_distances¶
Defined in File graph_dijkstra.hpp
Function Documentation¶
-
template<typename
Pred
>
voidgraspi
::
determine_shortest_distances
(graph_t *G, const edge_weights_t &W, vertex_t source, const Pred &pred, std::vector<float> &d)¶ This function determines the shortest paths in the fitered graph.
This function determines the shortest paths in the filtered graph. The shortest paths and the lengths (distances) are computed from the source vertex to all vertices in the filtered graph. The filtered graph is determined using predicate Pred.
- Template Parameters
Pred
: is the predicate used to filter the graph
- Parameters
G
: is the input graphW
: is the map storing the weights of the edgessource
: is the source vertex with respect to which distances are to be determine_shortest_distancedpred
: is the predicate used to filter the graphd
: is the vector of distance to be determined as a result of this function