Implements a graph.