Init a Graph.