Check whether path starts with the sequence [first, last). */
| 286 | |
| 287 | /** Check whether path starts with the sequence [first, last). */ |
| 288 | static unsigned |
| 289 | findOverlap( |
| 290 | const Graph& g, |
| 291 | const Paths& paths, |
| 292 | ContigPath::const_iterator first, |
| 293 | ContigPath::const_iterator last, |
| 294 | const Vertex& v, |
| 295 | int& distance) |
| 296 | { |
| 297 | if (!startsWith(paths[v.id], v.sense, first, last)) |
| 298 | return 0; |
| 299 | distance = -addProp(g, first, last).length; |
| 300 | return last - first; |
| 301 | } |
| 302 | |
| 303 | typedef vector<Overlap> Overlaps; |
| 304 |
no test coverage detected