| 183 | */ |
| 184 | template <typename Graph> |
| 185 | bool processTerminatedBranchTrim(Graph* seqCollection, BranchRecord& branch) |
| 186 | { |
| 187 | assert(!branch.isActive()); |
| 188 | assert(!branch.empty()); |
| 189 | if (branch.getState() == BS_NOEXT |
| 190 | || branch.getState() == BS_AMBI_OPP) { |
| 191 | logger(5) << "Pruning " << branch.size() << ' ' |
| 192 | << branch.front().first << '\n'; |
| 193 | for (BranchRecord::iterator it = branch.begin(); |
| 194 | it != branch.end(); ++it) |
| 195 | seqCollection->mark(it->first); |
| 196 | return true; |
| 197 | } else |
| 198 | return false; |
| 199 | } |
| 200 | |
| 201 | } // namespace AssemblyAlgorithms |
| 202 | |