Made the dissolve_length_one_stems function relabel the nodes