jebl.evolution.trees
Class SortedRootedTree

java.lang.Object
  extended by jebl.evolution.trees.FilteredRootedTree
      extended by jebl.evolution.trees.SortedRootedTree
All Implemented Interfaces:
Graph, RootedTree, Tree, Attributable

public class SortedRootedTree
extends FilteredRootedTree

Author:
Andrew Rambaut, Alexei Drummond

Nested Class Summary
static class SortedRootedTree.BranchOrdering
           
 
Nested classes/interfaces inherited from interface jebl.evolution.graphs.Graph
Graph.NoEdgeException, Graph.Utils
 
Field Summary
 
Fields inherited from class jebl.evolution.trees.FilteredRootedTree
source
 
Constructor Summary
SortedRootedTree(RootedTree source, Comparator<Node> comparator)
           
SortedRootedTree(RootedTree source, SortedRootedTree.BranchOrdering branchOrdering)
           
 
Method Summary
 List<Node> getChildren(Node node)
           
 
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
 

Constructor Detail

SortedRootedTree

public SortedRootedTree(RootedTree source,
                        SortedRootedTree.BranchOrdering branchOrdering)

SortedRootedTree

public SortedRootedTree(RootedTree source,
                        Comparator<Node> comparator)
Method Detail

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).