def isNewContents(n): return not T.searchNode(n, getValue) # Criterion for adding a particular configuration into the BFS queue: The set of jug-contents should never # have happened so far. def shouldBeAdded(n): return isNewContents(n)
def isNewContents(n): return not T.searchNode(n, T.getContents)