| 61 | */ |
| 62 | template <typename Graph> |
| 63 | size_t erode(Graph* c, const typename Graph::value_type& seq) |
| 64 | { |
| 65 | typedef typename vertex_bundle_type<Graph>::type VP; |
| 66 | |
| 67 | if (seq.second.deleted()) |
| 68 | return 0; |
| 69 | extDirection dir; |
| 70 | SeqContiguity contiguity = checkSeqContiguity(seq, dir); |
| 71 | if (contiguity == SC_CONTIGUOUS) |
| 72 | return 0; |
| 73 | |
| 74 | const VP& data = seq.second; |
| 75 | if (data.getMultiplicity() < opt::erode |
| 76 | || data.getMultiplicity(SENSE) < opt::erodeStrand |
| 77 | || data.getMultiplicity(ANTISENSE) < opt::erodeStrand) { |
| 78 | removeSequenceAndExtensions(c, seq); |
| 79 | g_numEroded++; |
| 80 | return 1; |
| 81 | } else |
| 82 | return 0; |
| 83 | } |
| 84 | |
| 85 | /** The given sequence has changed. */ |
| 86 | static inline |
no test coverage detected