Library for the Development and Use of Phylogenetic Network Methods
The joint reticulation-and-tree dissimilarity of two rooted networks: a minimum-cost matching of reticulation tripartitions plus a dissimilarity of the reticulation-free remainders, under leaf, cluster, or Nakhleh structure comparison.
The result of :func:`joint_dissimilarity` under one instantiation.
The joint reticulation-and-tree dissimilarity of two rooted phylogenetic networks on the same taxon set (see the module docstring for the definition). Symmetric, 0 on identical networks, and a metric on the tripartition and remainder representations under each instantiation. Both networks must have one root, be acyclic, have labelled leaves with no label used twice, and give every reticulation exactly two distinct parents and one child. Internal-node labels and branch lengths are ignored.
| Parameter | Type | Description |
|---|---|---|
| net1 | Network | First network. |
| net2 | Network | Second network. |
| kind | str | Structure dissimilarity: ``"leaf"`` (Jaccard of leaf sets), ``"cluster"`` (multiset hardwired clusters) or ``"nakhleh"`` (vertex-equivalence classes; the default). |
ValueError: If ``kind`` is not one of :data:`JOINT_KINDS`., NetworkError: If either network violates the requirements above, or the two taxon sets differ.