added function to add a label to a graph node - not functional at the
moment