X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mtp_graph.h;h=e46568895a1dbec8b707932ef3bff3a1b1750803;hb=340972b07aa40e812a99ecd2bced570cdd5eed84;hp=f2bedd47a2a7f919ffe08483b6d966ce0fa6bcf1;hpb=79a4a9ab164a667ecb551078e1cd773e2140e3c2;p=mtp.git diff --git a/mtp_graph.h b/mtp_graph.h index f2bedd4..e465688 100644 --- a/mtp_graph.h +++ b/mtp_graph.h @@ -24,6 +24,13 @@ class Vertex; class Edge; +class Path { +public: + int starting_time; + int duration; + int *nodes; +}; + class MTPGraph { void initialize_positivized_lengths_with_min(); void update_positivized_lengths(); @@ -40,12 +47,17 @@ class MTPGraph { public: + int nb_paths; + Path **paths; + MTPGraph(int nb_vertices, int nb_edges, int *from, int *to, int source, int sink); ~MTPGraph(); void find_best_paths(scalar_t *lengths, int *result_edge_occupation); + void retrieve_paths(); + void print(); void print_dot(); };