X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=mtp_graph.h;h=7b0f57d6c3e0395afbb6d368181452271681b896;hb=8df7c7e77366cb95e9e8e963af9319d9cbac1934;hp=072eeeca2decc5408cce45d2cc679bf1064b7213;hpb=0f54e5005de0f05d4bc400f23181301eb40f469e;p=mtp.git diff --git a/mtp_graph.h b/mtp_graph.h index 072eeec..7b0f57d 100644 --- a/mtp_graph.h +++ b/mtp_graph.h @@ -25,15 +25,21 @@ class Vertex; class Edge; class MTPGraph { - void initialize_work_lengths(); - void update_work_length(); + void initialize_work_lengths_with_min(); + void update_work_lengths(); + void force_positive_work_lengths(); void find_shortest_path(Vertex **front, Vertex **new_front); + Vertex **_front, **_new_front; + int _nb_vertices, _nb_edges; - Edge *edge_heap; - Vertex *vertices; - Vertex *source, *sink; + Vertex *_source, *_sink; + + Edge *_edges; + Vertex *_vertices; + public: + MTPGraph(int nb_vertices, int nb_edges, int *from, int *to, int source, int sink); @@ -41,6 +47,7 @@ public: void find_best_paths(scalar_t *lengths, int *result_edge_occupation); void print(); + void print_dot(); }; #endif