Now classifying End and Merge vertices as well