Added is_dag + an ASSERT using it.
[mtp.git] / mtp_graph.h
index 916b604..945f387 100644 (file)
@@ -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;