add label to the graph