Interface Tree<N>

All Known Implementing Classes:
TreeImpl

public interface Tree<N>
  • Method Details

    • getRoot

      N getRoot()
    • getLeaves

      Collection<N> getLeaves()
    • isALeaf

      boolean isALeaf(N n)
    • getAllNodes

      Collection<N> getAllNodes()
    • size

      int size()
    • parentOf

      N parentOf(N n)
    • childrenOf

      Collection<N> childrenOf(N n)