Constructor
Initializes the taxonomy viewer with the given taxonomy. *
The taxonomy to be visualized.
Updates the subtree visualization of two cases identified by their taxonomy labels. Case ids are also employed to show them on hover The node root of the subtree will be the lowest common ancestor (LCA) of these nodes.
The taxonomy label of the left item.
The identifier of the left item.
The taxonomy label of the right item.
The identifier of the right item.
The TaxonomyViewer class is responsible for visualizing a taxonomy using the It uses vis-network library vis.js. It initializes and manages two taxonomy visualizations: one for the entire taxonomy and one for a detailed view of a subtree.