Added method to print out path to node and return Vertex objects