Adding data to graph structure