Node Class in PhyloJS
The Node
class is the foundational class used n PhyloJS. The Tree
class wraps nested nodes. It represents a single node in a tree, with properties such as:
id
: Numerical IDparent
: Parent nodechildren
: Array of child nodesheight
: Heights above the rootbranchLength
: BRanch lengths leading into the nodelabel
: Name for the nodeannotation
: Any node annotationshybridID
: Boolean for whether node is hybridcollapsed
: Boolean for wehther node is collapsed
Each node can have multiple children but only one parent. The Node
class also includes several methods, which are documented in the API.