public override bool Equals(object right) { if (right is Path) { Path rPath = (Path)right; return(vertexList.Equals(rPath.vertexList)); } return(false); }