equal
deleted
inserted
replaced
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); |