parentVertices.addAll(incomingVerticesOf(vertexToKeep));
for (final MultiDeBruijnVertex p : parentVertices)
if (--pendingChildrenCounts[indexByVertex.get(p)] == 0)
ready.add(p);
final Kmer mergedKmer = new Kmer(sequence);
if (uniqueKmers.containsKey(mergedKmer)) {
uniqueKmersToUpdate.add(new Kmer(mergedKmer.bases().clone()));
uniqueKmers.remove(mergedKmer);
}
boolean foundMergedVertex = false;
for (final MultiDeBruijnVertex v : vertices)
if (v == vertexToKeep)
foundMergedVertex = true;
else {
final byte[] seq = v.getSequence();
final Kmer kmer = new Kmer(seq);
if (uniqueKmers.containsKey(kmer)) {
uniqueKmersToUpdate.add(kmer);
uniqueKmers.remove(kmer);
}
if (sequence.length != seq.length) throw new IllegalArgumentException("mismatched sizes " + sequence.length + " != "