Clustering sequence graphs