Created Graph and Vertex classes.