Package qilin.util.graph
Class TreeImpl<N>
java.lang.Object
qilin.util.graph.TreeImpl<N>
- All Implemented Interfaces:
Tree<N>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addTreeEdge
(N parent, N child) childrenOf
(N o) getRoot()
boolean
int
size()
-
Constructor Details
-
TreeImpl
public TreeImpl()
-
-
Method Details
-
getRoot
-
getLeaves
-
isALeaf
-
getAllNodes
- Specified by:
getAllNodes
in interfaceTree<N>
-
getAllTreeNodes
-
size
public int size() -
parentOf
-
childrenOf
- Specified by:
childrenOf
in interfaceTree<N>
-
addTreeEdge
-