Interface Tree
- All Superinterfaces:
Attributable, Graph
- All Known Subinterfaces:
RootedTree
- All Known Implementing Classes:
AbstractRootedTree, CompactRootedTree, FilteredRootedTree, MutableRootedTree, ReRootedTree, RootedFromUnrooted, RootedSubtree, SimpleRootedTree, SimpleTree, SortedRootedTree, TransformedRootedTree
A rooted or unrooted tree. This interface is the common base class for all trees,
and contains only operations for unrooted trees. The subinterface RootedTree
contains additional methods that make sense only on rooted trees.
Both interfaces contain no mutator methods. As of 2006-12-08, the only way
to mutate a tree after it has been built is to use its concrete class
instead of the Tree or RootedTree interface.
- Version:
- $Id: Tree.java 627 2007-01-15 03:50:40Z pepster $
- Author:
- rambaut, Alexei Drummond
-
Nested Class Summary
Nested classes/interfaces inherited from interface Graph
Graph.NoEdgeException, Graph.Utils -
Method Summary
Modifier and TypeMethodDescriptiongetTaxa()booleanisExternal(Node node) voidrenameTaxa(Taxon from, Taxon to) Methods inherited from interface Attributable
getAttribute, getAttributeMap, getAttributeNames, removeAttribute, setAttributeMethods inherited from interface Graph
getAdjacencies, getEdge, getEdgeLength, getEdges, getEdges, getNodes, getNodes, getNodes
-
Method Details
-
getExternalNodes
-
getInternalNodes
-
getExternalEdges
-
getInternalEdges
-
getTaxa
-
getTaxon
-
isExternal
- Parameters:
node- the node- Returns:
- true if the node is of degree 1.
-
getNode
-
renameTaxa
-