Implemented basic graph.