| Constructor and Description |
|---|
TreeImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTreeEdge(N parent,
N child) |
Collection<N> |
childrenOf(N o) |
Collection<N> |
getAllNodes() |
Collection<TreeNode<N>> |
getAllTreeNodes() |
Collection<N> |
getLeaves() |
N |
getRoot() |
boolean |
isALeaf(N o) |
N |
parentOf(N o) |
int |
size() |
public Collection<N> getLeaves()
public Collection<N> getAllNodes()
getAllNodes in interface Tree<N>public Collection<TreeNode<N>> getAllTreeNodes()
public Collection<N> childrenOf(N o)
childrenOf in interface Tree<N>Copyright © 2024 Soot OSS. All rights reserved.