| Modifier and Type | Field and Description |
|---|---|
protected ReversibleMap<T,T> |
nodeToParent |
protected T |
root |
| Constructor and Description |
|---|
TreeDirect(T root,
ReversibleMap<T,T> nodeToParent) |
| Modifier and Type | Method and Description |
|---|---|
T |
copy(T node,
List<T> children)
Copies a given node thereby setting the provided children as its children.
|
Tree<T> |
createNew(T root) |
Collection<T> |
getChildren(T node) |
T |
getParent(T node) |
T |
getRoot() |
long |
nodeCount() |
protected T root
protected ReversibleMap<T,T> nodeToParent
public TreeDirect(T root, ReversibleMap<T,T> nodeToParent)
Copyright © 2018. All rights reserved.