A implementation of a graph.