def METHOD_NAME(self):
    vertexListIDs = []
    vertexListIDs.append(self.startVertex.getID())
    v = self.startVertex.getUp()
    while v is not None and v is not self.startVertex:
        vertexListIDs.append(v.getID())
        v = v.getUp()
    if v is not None:
        vertexListIDs.append(v.getID())
    return vertexListIDs