5 #ifndef GBMOT_KSHORTESTPATHS_H 6 #define GBMOT_KSHORTESTPATHS_H 7 #include "../graph/Definitions.h" 22 DirectedGraph orig_graph_;
37 VertexPredecessorMap paths_;
42 std::vector<Vertex> sink_neighbors_;
54 bool FindPath(DirectedGraph& graph, Vertex& source, Vertex& sink,
55 VertexPredecessorMap& predecessors, VertexDistanceMap& distances);
56 bool FindPath(DirectedGraph& graph, Vertex& source, Vertex& sink,
57 VertexPredecessorMap& predecessors);
69 void FindPaths(
size_t count);
76 void AddPath(VertexPredecessorMap& path);
84 void AddPath(VertexPredecessorMap& in, MultiPredecessorMap& out);
92 void AddPaths(MultiPredecessorMap& paths);
102 KShortestPaths(DirectedGraph input_graph, Vertex source, Vertex sink);
110 void Run(
size_t max_path_count);
117 void GetPaths(std::vector<std::vector<Vertex>>& paths);
122 #endif //GBMOT_KSHORTESTPATHS_H void Run(size_t max_path_count)
Definition: KShortestPaths.cpp:23
KShortestPaths(DirectedGraph input_graph, Vertex source, Vertex sink)
Definition: KShortestPaths.cpp:16
Definition: Berclaz.cpp:10
void GetPaths(std::vector< std::vector< Vertex >> &paths)
Definition: KShortestPaths.cpp:548
Definition: KShortestPaths.h:16