refactor kmer graph creation