Implement the graph