Finds all contigs used in each path in paths, and * marks them as seen in the vector seen. */
| 361 | /** Finds all contigs used in each path in paths, and |
| 362 | * marks them as seen in the vector seen. */ |
| 363 | static void |
| 364 | seenContigs(vector<bool>& seen, const ContigPaths& paths) |
| 365 | { |
| 366 | for (ContigPaths::const_iterator it = paths.begin(); it != paths.end(); ++it) |
| 367 | for (ContigPath::const_iterator itc = it->begin(); itc != it->end(); ++itc) |
| 368 | if (itc->id() < seen.size()) |
| 369 | seen[itc->id()] = true; |
| 370 | } |
| 371 | |
| 372 | /** Mark contigs for removal. An empty path indicates that a contig |
| 373 | * should be removed. |