def withInBounds(self, v1, v2):
    return (((v1 >= 0) and (v1 <= self.numberOfNodes)) and ((v2 >= 0) and (v2 <= self.numberOfNodes)))
def withInBounds(self, v1, v2):
    return (((v1 >= 0) and (v1 <= self.numberOfNodes)) and ((v2 >= 0) and (v2 <= self.numberOfNodes)))