Compute the lowest common ancestor for two nodes identified by their labels
Label of the first node
Label of the second node
A copy of the lowest common ancestor of the nodes; or null, if any input node does not exist
Find the node with a specific id
node id
A copy of the taxonomy node with the id; or undefined, if it does not exist
Find the first node with a specific label
node label
A copy of the taxonomy node with the label; or undefined, if it does not exist
Gets a list of taxonomy edges
The edges in the taxonomy
Gets a list of taxonomy nodes
The nodes in the taxonomy
A class that represents a Taxonomy. It provides methods to find nodes by label or by id. Additionally, it computes the Lowest Common Ancestor for two nodes