Add labels on the output graph.