add labels to graph