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

Version:
$Id: SortedRootedTree.java 627 2007-01-15 03:50:40Z pepster $
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
 
Constructor Summary
SortedRootedTree(RootedTree source, java.util.Comparator<Node> comparator)
           
SortedRootedTree(RootedTree source, SortedRootedTree.BranchOrdering branchOrdering)
           
 
Method Summary
 java.util.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, renameTaxa, setAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedRootedTree

public SortedRootedTree(RootedTree source,
                        SortedRootedTree.BranchOrdering branchOrdering)

SortedRootedTree

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

getChildren

public java.util.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).


http://code.google.com/p/jebl2/