PGROUTING
3.2
|
#include "pgr_dagShortestPath.hpp"
Classes | |
class | dijkstra_many_goal_visitor |
class for stopping when all targets are found More... | |
class | dijkstra_one_goal_visitor |
class for stopping when 1 target is found More... | |
struct | found_goals |
Public Types | |
typedef G::E | E |
typedef G::V | V |
Public Member Functions | |
std::deque< Path > | dag (G &graph, const std::vector< int64_t > &start_vertex, const std::vector< int64_t > &end_vertex, bool only_cost) |
std::deque< Path > | dag (G &graph, const std::vector< int64_t > &start_vertex, int64_t end_vertex, bool only_cost) |
std::deque< Path > | dag (G &graph, const std::vector< pgr_combination_t > &combinations, bool only_cost) |
std::deque< Path > | dag (G &graph, int64_t start_vertex, const std::vector< int64_t > &end_vertex, bool only_cost) |
Dijkstra 1 to many. More... | |
Path | dag (G &graph, int64_t start_vertex, int64_t end_vertex, bool only_cost=false) |
Dijkstra 1 to 1. More... | |
Private Member Functions | |
void | clear () |
bool | dag_1_to_1 (G &graph, V source, V target) |
Call to Dijkstra 1 source to 1 target. More... | |
bool | dag_1_to_many (G &graph, V source, const std::vector< V > &targets, size_t n_goals=(std::numeric_limits< size_t >::max)()) |
Dijkstra 1 source to many targets. More... | |
std::deque< Path > | get_paths (const G &graph, V source, std::vector< V > &targets, bool only_cost) const |
Private Attributes | |
members | |
std::vector< V > | predecessors |
std::vector< double > | distances |
std::deque< V > | nodesInDistance |
std::ostringstream | log |
Definition at line 49 of file pgr_dagShortestPath.hpp.
Definition at line 52 of file pgr_dagShortestPath.hpp.
Definition at line 51 of file pgr_dagShortestPath.hpp.
|
inlineprivate |
Definition at line 277 of file pgr_dagShortestPath.hpp.
References Pgr_dag< G >::distances, Pgr_dag< G >::nodesInDistance, and Pgr_dag< G >::predecessors.
Referenced by Pgr_dag< G >::dag().
|
inline |
|
inline |
|
inline |
|
inline |
Dijkstra 1 to many.
Definition at line 92 of file pgr_dagShortestPath.hpp.
References Pgr_dag< G >::clear(), Pgr_dag< G >::dag_1_to_many(), Pgr_dag< G >::distances, Pgr_dag< G >::get_paths(), and Pgr_dag< G >::predecessors.
|
inline |
Dijkstra 1 to 1.
Definition at line 56 of file pgr_dagShortestPath.hpp.
References Pgr_dag< G >::clear(), Pgr_dag< G >::dag_1_to_1(), Pgr_dag< G >::distances, and Pgr_dag< G >::predecessors.
Referenced by Pgr_dag< G >::dag(), and pgr_dagShortestPath().
Call to Dijkstra 1 source to 1 target.
Definition at line 221 of file pgr_dagShortestPath.hpp.
References Pgr_dag< G >::distances, and Pgr_dag< G >::predecessors.
Referenced by Pgr_dag< G >::dag().
|
inlineprivate |
Dijkstra 1 source to many targets.
Definition at line 248 of file pgr_dagShortestPath.hpp.
References Pgr_dag< G >::distances, and Pgr_dag< G >::predecessors.
Referenced by Pgr_dag< G >::dag().
|
inlineprivate |
Definition at line 287 of file pgr_dagShortestPath.hpp.
References Pgr_dag< G >::distances, and Pgr_dag< G >::predecessors.
Referenced by Pgr_dag< G >::dag().
|
private |
Definition at line 309 of file pgr_dagShortestPath.hpp.
Referenced by Pgr_dag< G >::clear(), Pgr_dag< G >::dag(), Pgr_dag< G >::dag_1_to_1(), Pgr_dag< G >::dag_1_to_many(), and Pgr_dag< G >::get_paths().
|
private |
Definition at line 311 of file pgr_dagShortestPath.hpp.
Definition at line 310 of file pgr_dagShortestPath.hpp.
Referenced by Pgr_dag< G >::clear().
Definition at line 308 of file pgr_dagShortestPath.hpp.
Referenced by Pgr_dag< G >::clear(), Pgr_dag< G >::dag(), Pgr_dag< G >::dag_1_to_1(), Pgr_dag< G >::dag_1_to_many(), and Pgr_dag< G >::get_paths().