Adding a graph to a device