X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mtp_graph.h;h=0fad09dfb1c7e6f1897304e00d98b97bde23ee79;hb=3070f21d61377aff06255fa5cfe92d0111d70117;hp=e46568895a1dbec8b707932ef3bff3a1b1750803;hpb=340972b07aa40e812a99ecd2bced570cdd5eed84;p=mtp.git diff --git a/mtp_graph.h b/mtp_graph.h index e465688..0fad09d 100644 --- a/mtp_graph.h +++ b/mtp_graph.h @@ -19,6 +19,11 @@ #ifndef MTP_GRAPH_H #define MTP_GRAPH_H +#include +#include + +using namespace std; + #include "misc.h" class Vertex; @@ -26,8 +31,9 @@ class Edge; class Path { public: - int starting_time; - int duration; + Path(int l); + ~Path(); + int length; int *nodes; }; @@ -36,6 +42,7 @@ class MTPGraph { void update_positivized_lengths(); void force_positivized_lengths(); void find_shortest_path(Vertex **front, Vertex **new_front); + int retrieve_one_path(Edge *e, int *nodes); Vertex **_front, **_new_front; @@ -55,11 +62,11 @@ public: ~MTPGraph(); - void find_best_paths(scalar_t *lengths, int *result_edge_occupation); - void retrieve_paths(); + void find_best_paths(scalar_t *lengths); + void retrieve_disjoint_paths(); - void print(); - void print_dot(); + void print(ostream *os); + void print_dot(ostream *os); }; #endif