Adding the graph to the device