public class RemoveUselessNode extends TreeMutationAbstract
changedAtLastCall, key, locationOfLastChange, MAXTRIES, registry, typeOfChange
Constructor and Description |
---|
RemoveUselessNode(CentralRegistry registry) |
Modifier and Type | Method and Description |
---|---|
NAryTree |
mutate(NAryTree tree,
int node)
Mutates the given node (only use if you need to mutate a specific sub
tree, not beeing the whole tree).
|
changedAtLastCall, didChange, getKey, locationOfLastChange, mutate, noChange
public RemoveUselessNode(CentralRegistry registry)
public NAryTree mutate(NAryTree tree, int node)
TreeMutationAbstract
mutate
in class TreeMutationAbstract
node
- Node to mutate on