consolidate labelling of edge clusters and node clusters