| 113 | */ |
| 114 | template <typename Graph> |
| 115 | size_t removeMarked(Graph* pSC) |
| 116 | { |
| 117 | typedef typename Graph::iterator iterator; |
| 118 | |
| 119 | Timer timer(__func__); |
| 120 | size_t count = 0; |
| 121 | for (iterator it = pSC->begin(); it != pSC->end(); ++it) { |
| 122 | if (it->second.deleted()) |
| 123 | continue; |
| 124 | if (it->second.marked()) { |
| 125 | removeSequenceAndExtensions(pSC, *it); |
| 126 | count++; |
| 127 | } |
| 128 | pSC->pumpNetwork(); |
| 129 | } |
| 130 | if (count > 0) |
| 131 | logger(1) << "Removed " << count << " marked k-mer.\n"; |
| 132 | return count; |
| 133 | } |
| 134 | |
| 135 | } // namespace AssemblyAlgorithms |
| 136 |
no test coverage detected