jebl.evolution.trees
Class SortedRootedTree
java.lang.Object
jebl.evolution.trees.FilteredRootedTree
jebl.evolution.trees.SortedRootedTree
- All Implemented Interfaces:
- Graph, RootedTree, Tree, Attributable
public class SortedRootedTree
- extends FilteredRootedTree
- Author:
- Andrew Rambaut, Alexei Drummond
Methods inherited from class jebl.evolution.trees.FilteredRootedTree |
conceptuallyUnrooted, getAdjacencies, getAttribute, getAttributeMap, getAttributeNames, getEdge, getEdgeLength, getEdges, getEdges, getExternalEdges, getExternalNodes, getHeight, getInternalEdges, getInternalNodes, getLength, getNode, getNodes, getNodes, getNodes, getParent, getRootNode, getSource, getTaxa, getTaxon, hasHeights, hasLengths, isExternal, isRoot, removeAttribute, setAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedRootedTree
public SortedRootedTree(RootedTree source,
SortedRootedTree.BranchOrdering branchOrdering)
SortedRootedTree
public SortedRootedTree(RootedTree source,
Comparator<Node> comparator)
getChildren
public List<Node> getChildren(Node node)
- Specified by:
getChildren
in interface RootedTree
- Overrides:
getChildren
in class FilteredRootedTree
- Parameters:
node
- the node whose children are being requested.
- Returns:
- the list of nodes that are the children of the given node.
The set may be empty for a terminal node (a tip).