Added explicit constructors for the Graph and Vertex classes