add group labels to json graph nodes