X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mtp_graph.h;h=945f3872bab707081454e3f4f19d689aa4a668f9;hb=62fdbfb1b57b7c0be6aa8e48654872315b0d1660;hp=bd805c2b2c863b1c75aa0672f0ede48e267a9862;hpb=68d9c4f175f774d851a32f6069ad04b31924bfac;p=mtp.git diff --git a/mtp_graph.h b/mtp_graph.h index bd805c2..945f387 100644 --- a/mtp_graph.h +++ b/mtp_graph.h @@ -1,7 +1,7 @@ /* - * mtp is the ``Multi Tracked Path'', an implementation of the - * k-shortest path algorithm for multi-target tracking. + * mtp is the ``Multi Tracked Paths'', an implementation of the + * k-shortest paths algorithm for multi-target tracking. * * Copyright (c) 2012 Idiap Research Institute, http://www.idiap.ch/ * Written by Francois Fleuret @@ -45,6 +45,8 @@ class MTPGraph { // Follows the path starting on edge e and returns its length. If // nodes is non-null, stores in it the nodes met along the path. int retrieve_one_path(Edge *e, Path *path); + // Returns if the graph is a DAG + int is_dag(); Vertex **_front, **_new_front; @@ -60,7 +62,7 @@ public: int nb_paths; Path **paths; - MTPGraph(int nb_vertices, int nb_edges, int *from, int *to, + MTPGraph(int nb_vertices, int nb_edges, int *vertex_from, int *vertex_to, int source, int sink); ~MTPGraph();