Labelled the graphs