lemon/path_utils.h
changeset 2350 eb371753e814
parent 2335 27aa03cd3121
child 2357 5365600a7a5c
equal deleted inserted replaced
0:d70822c8ca7e 1:04b482d7b684
   101   }
   101   }
   102 
   102 
   103   /// \brief Checks the path's consistency.
   103   /// \brief Checks the path's consistency.
   104   ///
   104   ///
   105   /// Checks that each edge's target is the next's source. 
   105   /// Checks that each edge's target is the next's source. 
   106   /// \Checks the path's consistency.
   106   /// 
   107   ///
       
   108   /// Checks that each edge's target is the next's source. 
       
   109   template <typename Graph, typename Path>
   107   template <typename Graph, typename Path>
   110   bool checkPath(const Graph& graph, const Path& path) {
   108   bool checkPath(const Graph& graph, const Path& path) {
   111     typename Path::EdgeIt it(path);
   109     typename Path::EdgeIt it(path);
   112     if (it == INVALID) return true;
   110     if (it == INVALID) return true;
   113     typename Graph::Node node = graph.target(it);
   111     typename Graph::Node node = graph.target(it);