Adding attributes to the graph