1 #ifndef GRAPHALGORITHMS_H
2 #define GRAPHALGORITHMS_H
4 #include "GraphInterface.h"
25 std::vector<std::pair<cost_t,std::vector<NodeInterface*> > > enumerate_paths(GraphInterface *g, NodeInterface *x, NodeInterface *destination, cost_t max_cost);
29 std::vector<std::pair<cost_t,std::vector<NodeInterface*> > > enumerate_paths(GraphInterface *g, NodeInterface *x, NodeInterface *destination=0);
30 pair<cost_t, vector<NodeInterface *> > random_path(GraphInterface *g, NodeInterface *x, NodeInterface *destination,cost_t max_cost);
34 pair<cost_t, vector<NodeInterface *> > random_path(GraphInterface *g, NodeInterface *x, NodeInterface *destination);
36 std::pair<cost_t,std::deque<NodeInterface*> > dijkstra(GraphInterface *g,NodeInterface* n1,NodeInterface* n2);
37 std::pair<cost_t,std::vector<NodeInterface*> > dijkstra(GraphInterface *g,NodeInterface* n1,NodeInterface* n2,
bool vect);
47 std::pair<cost_t,std::deque<NodeInterface*> > getPathDeque(
NodeInterface *start);
48 std::pair<cost_t,std::vector<NodeInterface*> > getPathVector(
NodeInterface *start);
53 std::map<NodeInterface*,cost_t> dist;
54 std::map<NodeInterface*,NodeInterface*> pred;
59 #endif // GRAPHALGORITHMS_H
Definition: graphAlgorithms.h:39
Definition: NodeInterface.h:11
template interface for a graph
Definition: GraphInterface.h:13