Extend this branch. */
| 100 | |
| 101 | /** Extend this branch. */ |
| 102 | static inline |
| 103 | bool extendBranch(BranchRecord& branch, |
| 104 | graph_traits<SequenceCollectionHash>::vertex_descriptor& kmer, |
| 105 | SequenceCollectionHash::SymbolSet ext) |
| 106 | { |
| 107 | typedef SequenceCollectionHash Graph; |
| 108 | typedef graph_traits<Graph>::vertex_descriptor V; |
| 109 | |
| 110 | if (!ext.hasExtension()) { |
| 111 | branch.terminate(BS_NOEXT); |
| 112 | return false; |
| 113 | } else if (ext.isAmbiguous()) { |
| 114 | branch.terminate(BS_AMBI_SAME); |
| 115 | return false; |
| 116 | } else { |
| 117 | std::vector<V> adj; |
| 118 | generateSequencesFromExtension(kmer, branch.getDirection(), |
| 119 | ext, adj); |
| 120 | assert(adj.size() == 1); |
| 121 | kmer = adj.front(); |
| 122 | return true; |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Process the extension for this branch for the trimming algorithm |
no test coverage detected