Return the distance from vertex u to v. */
| 203 | |
| 204 | /** Return the distance from vertex u to v. */ |
| 205 | static int getDistance(const Graph& g, |
| 206 | graph_traits<Graph>::vertex_descriptor u, |
| 207 | graph_traits<Graph>::vertex_descriptor v) |
| 208 | { |
| 209 | typedef graph_traits<Graph>::edge_descriptor E; |
| 210 | pair<E, bool> e = edge(u, v, g); |
| 211 | assert(e.second); |
| 212 | return g[e.first].distance; |
| 213 | } |
| 214 | |
| 215 | /** Read contig paths from the specified file. |
| 216 | * @param[in] inPath the filename of the contig paths |
no test coverage detected