{'fraction_non_alphanumeric': 0.04480836538046062, 'fraction_numerical': 0.009052413256708292, 'mean_word_length': 3.970149253731343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 2, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Tripartitions do not always discriminate phylogenetic networks

Phylogenetic networks are a generalization of phylogenetic trees that allow for the representation of non-treelike evolutionary events, like recombination, hybridization, or lateral gene transfer. In a recent series of papers devoted to the study of reconstructibility of phylogenetic networks, Moret, Nakhleh, Warnow and collaborators introduced the so-called {tripartition metric for phylogenetic networks. In this paper we show that, in fact, this tripartition metric does not satisfy the separation axiom of distances (zero distance means isomorphism, or, in a more relaxed version, zero distance means indistinguishability in some specific sense) in any of the subclasses of phylogenetic networks where it is claimed to do so. We also present a subclass of phylogenetic networks whose members can be singled out by means of their sets of tripartitions (or even clusters), and hence where the latter can be used to define a meaningful metric.


Introduction
Phylogenetic trees have been used since the days of Darwin [4] to represent evolutionary histories of sets of species under mutation. Their popularity and prevalence have led to the introduction of many methods to their reconstruction, combination, and comparison [6,8,19]. But, as Doolittle pointed out about a decade ago [7], the history of life cannot be properly represented as a tree. Phylogenetic networks are used then as a generalization of 1 phylogenetic trees that allow for the representation of non-treelike evolutionary events, like recombination, hybridization, or lateral gene transfer [1].
The natural model for describing an evolutionary history is a directed acyclic graph (DAG for short) representing the parent-child relation. Phylogenetic trees are rooted DAGs where each node other than the root (which represents the common ancestor of all individuals under consideration, be them species or biomolecular sequences) has at most one parent, from which it has been derived through mutation. Phylogenetic networks are rooted DAGs containing tree nodes, which have only one parent and thus correspond to regular speciation events, and hybrid nodes, which have more than one parent and thus correspond to hybrid speciation events. To such a DAG several extra conditions have been added in the literature to provide a realistic model of recombination [20,21] or simply to narrow the output space of reconstruction algorithms [9,10].
In a series of papers [11,12,13,14,15,16,17] devoted to the study of reconstructibility of phylogenetic networks, Moret, Nakhleh, Warnow and collaborators introduced a method to compare a reconstructed network and the true phylogeny, the so-called tripartition, or also error, metric. This method is based on the association, to each node v of the network, of a tripartition of its set of leaves into those that are strict descendants of v (that is, such that every path from the root to the leaf contains v), those that are non-strict descendants of it (that is, that are descendants but not strict descendants), and those that are not descendants of v. These tripartitions may be enriched with some extra information like, for instance, the greatest number of hybrid nodes in a path from v to each leaf, or the sets of descendants of the parents of hybrid nodes. Notice anyway that these tripartitions are a natural generalization to non-tree networks of Bourque-Robinson-Foulds bipartitions, which associate to each node of a phylogenetic tree the partition of its leaves into descendant and non-descendant ones. These bipartitions are used to define one of the most popular distances for phylogenetic trees [3,18].
One of the key points in the definition of this tripartition metric is the claim that the sets of tripartitions discriminate, up to isomorphism, phylogenetic networks in a suitable subclass of them. That is, that if two phylogenetic networks N and N ′ in this subclass have the same sets of tripartitions, then they are isomorphic. This turns out to be equivalent to the separation axiom for the tripartition metric (zero distance means isomorphism). In this paper, we provide counterexamples showing that all claims made in this connection in those papers are untrue, and thus that the tripartition metric does not satisfy the separation axiom in any of the cases considered by the authors, even in the more relaxed sense of [14], where zero distance is simply claimed to be equivalent to equality modulo a certain specific notion of indistinguishability. Therefore, the tripartition metric cannot be used in a meaningful way to compare phylogenetic networks in the classes considered in the aforementioned papers, as it cannot decide the equality (or even indistinguishability) of networks. Then, in the last section, we show a slight variant of the class considered in one of these papers where tripartitions, and even bipartitions in the sense of Bourque-Robinson-Foulds, do define a metric.

Notations on DAGs
Let N = (V, E) be a directed acyclic graph (DAG). We denote by d i (u) and d o (u) the in-degree and out-degree, respectively, of a node u ∈ V .
A node v ∈ V is a leaf if d o (v) = 0. A node v ∈ V is a tree node if d i (v) 1. Such a tree node is a root if d i (v) = 0, and internal if d i (v) = 1 and d o (v) > 0. A node v ∈ V is hybrid if d i (v) > 1. We denote by V L , V T , and V H the sets of leaves, of tree nodes, and of hybrid nodes of N , respectively. An arc (u, v) ∈ E is a tree arc if its head v is a tree node, and a network arc if v is hybrid.
A clade of a DAG N is a subtree of N with set of nodes contained in V T and set of leaves contained in V L .
A node v ∈ V is a child of u ∈ V if (u, v) ∈ E; we also say that u is a parent of v. All children of the same node are said to be siblings of each other. The tree children of a node u are its children that are tree nodes.
Let S be any finite set of labels. We say that the DAG N is labeled in S when its leaves are bijectively labeled by elements of S. Two DAGs N, N ′ labeled in S are isomorphic, in symbols N ∼ = N ′ , when they are isomorphic as directed graphs and the isomorphism preserves the leaves' labels.
We shall always assume, usually without any further notice, that the DAGs appearing in this paper are labeled in some set S, and we shall always identify, usually without any further notice either, each leaf of a DAG with its label in S.
is k, and it is non-trivial if k 1. We denote by u v any path with origin u and end v.
The relation on V defined by u v ⇐⇒ there exists a path u v is a partial order, called the path ordering on N . Whenever u v, we shall say that v is a descendant of u and also that u is an ancestor of v.

Tripartitions
Let N = (V, E) be any DAG labeled in S. For every node u ∈ V : • Let C(u) ⊆ S be the set of leaves that are descendants of u. We call C(u) the cluster of u.
• Let A(u) ⊆ C(u) be the set of leaves that are strict descendants of u: that is, those leaves s such that every path from a root of N to s contains the node u. We call A(u) the strict cluster of u.
• Let B(u) ⊆ C(u) be the set C(u) \ A(u) of leaves that are non-strict descendants of u: those leaves s that are descendants of u, but for which there exists some path from a root to s not containing the node u.
• Let C c (u) ⊆ S be the set V L \ C(u) of leaves that are not descendants of u.
A phylogenetic tree on a set S of taxa is a rooted tree with its leaves labeled bijectively in S, i.e., a rooted DAG labeled in S without hybrid nodes. Notice that, in a phylogenetic tree, C(u) = A(u) and B(u) = ∅ for every node u. This property actually characterizes phylogenetic trees among all rooted DAGs.
Every arc e = (u, v) of a phylogenetic tree T = (V, E) on S defines a bipartition of S π (T ) (e) = (C(v), C c (v)).
Let π(T ) denote the set of all these bipartitions: The bipartition distance [3,18] between two phylogenetic trees T and T ′ on the same set S of taxa is defined as The bipartition distance is a true distance for phylogenetic trees, in the sense that it satisfies the axioms of distances up to isomorphisms: for every phylogenetic trees T, T ′ , T ′′ on the same set S of taxa, Phylogenetic networks [1] are usually defined as a subclass of DAGs that extend phylogenetic trees by allowing the existence of hybrid nodes representing recombination or lateral gene transfer events. In a non-tree DAG N it still makes sense to consider bipartitions π associated to arcs e = (u, v), and then to define As we shall see in Section 9, there even exist subclasses of non-tree DAGs where d π is a distance. But, to distinguish between strict and non-strict descendants gives more information about the topological relations between the hybrid nodes. This is the reason why, in the series of papers [11,12,13,14,15,16,17], Moret, Nakhleh, Warnow, and collaborators associate to each arc e = (u, v) of a DAG N labeled in S, the tripartition of S As an extra piece of information about the topology of the DAG, the leaves s in A(v) and B(v) can be weighted with the maximum number of hybrid nodes contained in a path from v to s (including v and s themselves). Therefore, we can distinguish between: • The (unweighted) tripartition θ (N ) (e) [16,15,14].
B (e), where the elements of B(v) are weighted as indicated [13].
• The AB-weighted tripartition θ AB (e), where the elements of both A(v) and B(v) are weighted as indicated [11,12].
For every type of tripartition Υ = θ, θ B , θ AB , let us denote by Υ(N ) the set of all these tripartitions of arcs of N : 4 The tripartition distance relative to Υ between two DAGs N 1 = (V 1 , E 1 ) and N 2 = (V 2 , E 2 ) labeled in the same set S can be defined then, by analogy with the bipartition distance, by It is obvious that d Υ always satisfies the non-negativity, symmetry and triangle inequality axioms of distances on the class of all DAGs labeled in a fixed set S. As far as the separation axiom goes, notice that d Υ (N 1 , N 2 ) = 0 if and only if Υ(N 1 ) = Υ(N 2 ). Therefore, d Υ satisfies the separation axiom on a certain subclass of DAGs if and only if Υ(N ) characterizes N up to isomorphism among all DAGs in this subclass. When these equivalent conditions hold, we shall say that the tripartition Υ satisfies the separation property on the subclass of DAGs under consideration.
Notice that, for every DAGs N and N ′ , Then, the separation property for θ implies the separation property for θ B , and the latter implies the separation property for θ AB . In the papers by Moret, Nakhleh, Warnow, et al mentioned above, it is claimed that some of these tripartitions Υ (and even further refinements of them) satisfy the separation property on some specific subclasses of DAGs. In the following sections we show that all these claims are incorrect, and then in Section 9 we show a subclass of phylogenetic networks where θ, an even the bipartition π, satisfy the separation property.
To end this section, we want to mention that in the aforementioned papers, the Υtripartition distance is actually not defined as above, but in a normalized version, which the authors call error metric: This is the function claimed to be a distance on some subclasses of DAGs in those papers. It is straightforward to notice that m Υ satisfies the separation axiom of distances on a subclass of DAGs if and only if d Υ does so, and therefore the counterexamples in the next sections also entail that m Υ neither satisfies the separation axiom when claimed. But, contrary to what happens with d Υ and against what is claimed in several of the papers under review (see, for instance, the proof of [14,Thm. 3]), this normalized version m Υ need not satisfy the triangle inequality either, even on the subclasses of DAGs considered in those papers. For one reason, the failure of the separation property allows the existence of DAGs N = (V, E) and N ′ = (V ′ , E ′ ) such that Υ(N ) = Υ(N ′ ) but, say, |E| < |E ′ |. Then, given any other For two specific N = (V, E) and N ′ = (V ′ , E ′ ) such that Υ(N ) = Υ(N ′ ) but |E| = |E ′ |, precisely in the context of Thm. 3 in [14], see the DAGs N 9 and N 10 depicted in Fig. 8 in the Appendix 1 . They are reduced reconstructible phylogenetic networks (see Section 8 for the precise meaning of these words), the subclass where that theorem claims that m θ satisfies the triangle inequality, and they have the same AB-weighted tripartitions (see Table 7 also in the Appendix) but different numbers of arcs. This shows that m θ AB does not satisfy the triangle inequality on the subclass of reduced reconstructible phylogenetic networks. Anyway, the failure of the triangle inequality is easily solved for instance using d Υ instead of m Υ . The failure of the separation axiom is deeper, as it reflects the impossibility of discriminating the phylogenetic networks under consideration using only information on their tripartitions.

The first error metric
The error metric for phylogenetic networks is introduced by Moret, Nakhleh, and Warnow in the Technical Report [13]. In it, a phylogenetic network on a set S of taxa is defined as a rooted DAG N labeled in S satisfying the following conditions: (4.1) The in-degree and out-degree of each node is 0, 1, or 2, and no node has its in-degree equal to its out-degree.
(4.2) If a node has two children, at least one of them is a tree node.  Notice that in these phylogenetic networks, a hybrid node can have a hybrid child. This would correspond to a hybrid node that hybridizes before undergoing a speciation event, a scenario that, the authors say, "almost never arises in reality." Condition (4.3) is a first, weak version of a constant property of Nakhleh-Warnow-et al's phylogenetic networks: time consistency. Roughly speaking, this property aims at assigning times to the nodes of the network in a way that strictly increases on tree arcs and so that the parents of a hybrid node coexist in time; we shall discuss this topic further in the next section. In the weak version recalled in this section, and which does not entail in general such a timing (cf. Prop. 1 in the next section), this restriction is simply imposed by not allowing a node to hybridize with its descendants, and by forbidding the ancestors of a parent of a hybrid node to hybridize with the descendants of the other parent.
A phylogenetic network is said to be of class I when each hybrid node has at least one parent that is a tree node.
Then, it is claimed in [13,Thm. 4] that θ B satisfies the separation property on the subclass of all class I phylogenetic networks. This claim is untrue, because there exist pairs of non-isomorphic class I phylogenetic networks with the same sets of B-weighted (even AB-weighted) tripartitions.
Consider for instance the phylogenetic networks N 1 and N 2 labeled in {1,. . . ,5} depicted in Fig. 3 in the Appendix. It is easy to check that these two DAGs satisfy conditions (4.1) to (4.3) above and that they are of class I. Now, Table 1 displays the AB-weighted tripartitions of these networks induced by their arcs. A simple inspection of this table It is interesting to point out that θ B , and even θ, satisfy the separation property if we moreover forbid the "improbable" event of two consecutive hybridizations: i.e., if we impose not only that some child of a tree node is a tree node (condition (4.2)), but also that the only child of an internal hybrid node is a tree node, a condition that would be imposed in later versions (see conditions (5.2), (6.2), and (8.2)). We devote Section 9 to prove this fact.

The second version: introducing strong time consistency
A new version of the tripartition metric is presented in the Technical Report [11]. This is the metric used, for instance, in the paper [17]. The main difference between the proposal in this new Technical Report and the previous one [13] is the refinement of the notion of phylogenetic network, by distinguishing between model and reconstructible phylogenetic networks and strengthening the time compatibility and class I conditions.
In [11], a model phylogenetic network on a set S of taxa is defined as a rooted DAG N labeled in S satisfying the following conditions: (5.1) The root and all internal tree nodes have out-degree 2. All hybrid nodes have outdegree 1, and they can only have in-degree 2 (allo-polyploid hybrid nodes) or 1 (autopolyploid hybrid nodes). 2 (5. 2) The child of a hybrid node is always a tree node.
(5.3) Strong time consistency: Let x, y be any two nodes for which there exists a sequence of nodes (v 0 , v 1 , . . . , v k ) with v 0 = x and v k = y such that: (that is, (v 0 , . . . , v k ) is a path from x to y containing some tree arc of N , in the graph N * obtained from N by adding the inverses of all network arcs). Then, x and y cannot have a hybrid child in common.
This new notion of time consistency generalizes the one given in the previous version, and, as we shall see in a minute, it captures the notion of timing mentioned therein. This timing is given by a temporal representation in the sense of Baroni, Semple and Steel [2]: a mapping τ : V → N such that: (a) if r is the root of N , then τ (r) = 0; Baroni, Semple and Steel prove in loc. cit. the equivalence between the existence of such a temporal representation and the fact that a certain quotient graph (essentially obtained by identifying hybrid nodes with their parents) of the network is acyclic. Since none of the papers on tripartitions we are discussing provides a formal proof of the fact that condition (5.3) above is equivalent to the existence of a temporal representation, and for the sake of completeness, we provide such a proof here. Proof. (i)=⇒(ii) To begin with, notice that if N * has cycles containing tree arcs of N , then it has a minimal 3 such cycle. Indeed, if N * has cycles containing tree arcs, then it will contain one of shortest length, say If it is not minimal, then v i = v j for some 0 i < j k (actually j − i 2, because N does not contain loops), and hence we have two strictly shorter cycles in N * , and at least one of them contains the tree arc that belonged to the original cycle, which leads to a contradiction.
Assume now that N satisfies the strong time consistency condition and that N * has a minimal cycle containing some tree arc of N : without any loss of generality, we shall assume that (v k , v 0 ) is a tree arc of N , and in particular that v 0 is a tree node. Since N is acyclic, this cycle must contain some arc in But in this case the sequence of nodes is a path in N * containing at least one tree arc and connecting two parents of a hybrid node of N , which contradicts the strong time consistency condition. This shows that N * cannot contain any minimal cycle containing some tree arc of N .
(ii)=⇒(iii) If N * does not have any cycle containing some tree arc of N , then the mapping τ : V → N that sends each v ∈ V to the maximum number of tree arcs in a path from the root r to v in N * is well defined, and it clearly satisfies conditions (a) to (c) in the statement.
(iii)=⇒(i) Assume that a mapping τ as described in (iii) exists. Then, if (v 0 , . . . , v k ) is a path in N * containing some tree arc of N , we have that τ (v 0 ) < τ (v k ), and then v 0 and v k cannot be the parents of a hybrid node u, because the latter would imply that In reconstructible phylogenetic networks the previous conditions are relaxed: tree nodes can have any out-degree greater than 1; hybrid nodes can have any in-degree greater than 1 and any out-degree greater than 0 (in particular, auto-polyploid hybrid nodes are forbidden); a hybrid node can have hybrid children; and the strong time consistency need not hold any longer. Now, two nodes u, v of a (model or reconstructible) phylogenetic network are said to be convergent when they satisfy the following condition: For every leaf s and for every k 0, there exists a path u s containing k hybrid nodes if and only if there exists a path v s containing k hybrid nodes.
A phylogenetic network is said to be of class I if it does not contain any pair of convergent nodes.
Then, it is claimed in [11,Thm. 4] that θ AB satisfies the separation property on this new class I of phylogenetic networks. It is again incorrect, because there still exist pairs of nonisomorphic class I model phylogenetic networks with AB-weighted error rate 0. Consider for instance the model phylogenetic networks N 3 and N 4 labeled in {1, . . . , 13} depicted in Fig. 4 in the Appendix, which are suitable modifications of those given in Fig. 3 to cope with the new restrictions on model phylogenetic networks (much simpler examples exist involving reconstructible networks containing, for instance, out-degree 3 tree nodes: consider the networks N 9 and N 10 shown in Fig. 8).
These networks have no pair of convergent nodes (as it can be checked in Table 2) and they are clearly non-isomorphic. Now, Table 2 displays the tripartitions of these networks induced by their arcs and, again, a simple inspection of this table shows that θ AB (N 3 ) = θ AB (N 4 ).

The third version: introducing the reticulation scenarios
In the Technical Reports [12,16] the authors present a third version of the tripartition metric, now including a substantial change in the definition of the metric itself.
The definition of phylogenetic network in these papers is that of model phylogenetic network in the previous section with a small modification in the time compatibility condition. More specifically, a phylogenetic network on a set S of labels is a rooted DAG N labeled in S satisfying the following conditions: (6.1) The root and all internal tree nodes have out-degree 2. All hybrid nodes have outdegree 1, and they can only have in-degree 2 or (in [12]) 1. (6. 2) The child of a hybrid node is always a tree node.
(6.3) Time consistency: Let x, y be any two nodes for which there exists a sequence of paths (P 0 , P 1 , . . . , P k ) in N such that • x is the origin of P 0 and y is the end of P k ; • each path contains some tree arc; • for every i = 0, . . . , k − 1, the end of P i and the origin of P i+1 are the parents of a hybrid node.
Then, x and y cannot have a hybrid child in common.
This time consistency condition (6.3) is actually weaker than the strong time consistency In these papers the authors do not consider any class I of phylogenetic networks, but instead they refine the error rate by adding some extra information to tripartitions induced by network arcs. Namely, they define the reticulation scenario RS(v) of a hybrid node v with parents u 1 , u 2 as the set of clusters of its parents: Then, the data the authors 4 consider on arcs are: • If e is a tree arc, then Ψ (N ) (n) = θ We shall call Ψ (N ) (e) the enriched (AB-weighted) tripartition of N associated to e. Notice that Ψ (N ) (e) still depends always only on e's head.
Let us denote by Ψ(N ) the set of all these enriched tripartitions: Then, in the papers quoted above, these sets Ψ(N ) are used to define a metric m Ψ by means of a formula similar to that of m Υ recalled in Section 3. It is claimed in [12, §5.4] and [16, §5] that Ψ satisfies the separation property on the class of all phylogenetic networks, in the sense that if Ψ(N 1 ) = Ψ(N 2 ) then N 1 ∼ = N 2 , for every phylogenetic networks N 1 and N 2 labeled in the same set S. And again, it is untrue, as there exist pairs of non-isomorphic phylogenetic networks with the same sets of enriched tripartitions. For instance, the phylogenetic networks N 3 and N 4 labeled in {1, . . . , 13}, used already in the previous section and depicted in Fig. 4. They have the same hybrid nodes, and we have already seen in Table 2 that they have the same sets of tripartitions induced by tree arcs as well as the same sets of tripartitions induced by network arcs. Table 3 shows that their hybrid nodes have the same reticulation scenarios. From these two tables, one can easily check that Ψ(N 3 ) = Ψ(N 4 ).

Nakhleh's thesis: introducing the tree-sibling condition
In his PhD Thesis [15], Nakhleh uses the enriched tripartitions Ψ (actually, he uses unweighted tripartitions, but for the sake of generality we shall still use them AB-weighted), but he restricts the subclass of phylogenetic networks where Ψ is stated to satisfy the separation property.
The definition of model phylogenetic network in this work is that of phylogenetic network given in the last section (conditions (6.1), (6.2) and (6.3)), while in reconstructible networks these conditions are relaxed as in Section 5.
Then he defines a phylogenetic network to be of class I when every hybrid node has at least one sibling that is a tree node. We shall say henceforth that such a phylogenetic network satisfies the tree-sibling condition, or simply that it is tree-sibling, to distinguish these networks from previous class I networks defined through the absence of convergent pairs: notice that, for instance, phylogenetic networks N 3 and N 4 in Fig. 4 have no pair of convergent nodes, but they are not tree-sibling, while networks N 5 and N 6 in Fig. 5 in the Appendix are tree-sibling, but have pairs of convergent nodes (see Table 4). The phylogenetic networks used in [9,10] (obtained by adding network arcs to a phylogenetic tree by repeating the following procedure: choose pairs of arcs (u 1 , v 1 ) and (u 2 , v 2 ) in the tree; split the first into (u 1 , w 1 ) and (w 1 , v 1 ), with w 1 a new (tree) node; split the second one into (u 2 , w 2 ) and (w 2 , v 2 ), with w 2 a new (hybrid) node; finally, add a new arc (w 1 , w 2 )) are tree-sibling.
Nakhleh claims [15, Thm. 4 in Ch. 6] that Ψ satisfies the separation property on the subclass of all tree-sibling phylogenetic networks. It is false, as there exist pairs of nonisomorphic tree-sibling model phylogenetic networks with the same sets of enriched tripartitions Consider for instance the phylogenetic networks N 5 and N 6 labeled in {1, . . . , 10} depicted in Fig. 5 in the Appendix. They are model phylogenetic networks (they even satisfy the strong time consistency condition (5.3) instead of the time consistency condition (6.3)), they satisfy the tree-sibling condition, and they are clearly non-isomorphic. Table 4 displays the tripartitions of these networks induced by their arcs, and Table 5 gives the reticulation scenarios of their hybrid nodes (which are the same in both networks). From these two tables, one can easily check that Ψ(N 5 ) = Ψ(N 6 ).

11
In the final paper [14] of this series, Moret, Nakhleh, Warnow et al assert that their tripartitions can be used to distinguish networks up to a certain notion of reduction that we recall below, from where they deduce that θ satisfies the separation property on a very restricted subclass of phylogenetic networks. The notion of model phylogenetic network is this paper is exactly that of the last two sections. As far as reconstructible phylogenetic networks goes, they do not relax them as much as in previous papers. More specifically, a reconstructible phylogenetic network on a set S of labels is defined as a rooted DAG labeled in S satisfying the following conditions: (8.1) The root and all internal tree nodes can have any out-degree greater than 1. All hybrid nodes have out-degree 1, but they can have any in-degree greater than 1. (8. 2) The child of a hybrid node is always a tree node. A subset U of internal nodes of V is said to be convergent when it has at least two elements, and all nodes in it have exactly the same cluster (contrary to previous versions, no condition on the number of hybrid nodes in the paths to descendant leaves is required). The removal of convergent sets is the basis of the following reduction procedure: (0) Replace every clade by a new "symbolic leaf" labeled with the names of all leaves in it.
(1) For every maximal convergent set U , remove all nodes in paths from nodes in U to (symbolic) leaves, including the node in U but keeping the leaf. For every node x that is the tail of an arc whose head v has been removed, and for every leaf s in the cluster of v, add a new arc (x, s).
(The resulting network contains no convergent set of nodes, because this step does not change the clusters of the surviving nodes.) (2) Append to every symbolic leaf representing a clade the corresponding clade, with an arc from the symbolic leaf to the root of the clade.
(3) Replace every path of length greater than 1 with all its intermediate nodes of in-and out-degree equal to 1 by a single arc from its origin to its end.
(In particular, if a symbolic leaf turns out to have only one parent, then it is removed and the root of the corresponding clade is appended to its first ancestor with outdegree different from 1.) The output of this procedure applied to a reconstructible phylogenetic network N is a DAG R(N ) labeled in S. The network R(N ) is called the reduced version of N . Two networks N 1 and N 2 are said to be indistinguishable when they have isomorphic reduced versions, that is, when R(N 1 ) ∼ = R(N 2 ).
Since every hybrid node in N and its only child form a convergent set, they are removed in step (1) together with all their descendants until the clades' symbolic leaves. On the other hand, in R(N ) the symbolic leaves may have more than one parent, and then they are the only possible hybrid nodes in R(N ). So, in particular, no hybrid node in R(N ) is a descendant of another hybrid node. Moreover, since all convergent sets and all nodes with in-and out-degree 1 in N are removed, the only possible convergent sets in R(N ) consist of a hybrid node and its only child (that is, a symbolic leaf with more than one parent and the root of the corresponding clade).
We want to point out that the reduced version of a reconstructible phylogenetic network need not be a reconstructible phylogenetic network. Consider for instance the simple network N in Fig. 2 below. The nodes a, b, r form a convergent set, and therefore they are removed in the reduction process. Then, the reduced version of N is a non connected DAG consisting of four arcs with heads the leaves of N . As another example, consider the reconstructible phylogenetic network N 8 in Fig. 6 in the Appendix: its reduced version, which is shown in Fig. 7, does not satisfy the time consistency property. This shows that reduced versions need not be time consistent. It is claimed in [14,Lem. 1] that if θ(N 1 ) = θ(N 2 ), then N 1 and N 2 are indistinguishable (the converse does not hold in general, because the reduction process may remove parts with different topologies that yield differences in the sets of tripartitions). This is not true. Consider for instance the model phylogenetic networks N 7 and N 8 depicted in Fig. 6 in the Appendix. Table 6 displays the tripartitions of these networks induced by their arcs, showing that the sets of tripartitions are the same (we give actually the AB-weighted tripartitions, just to show that their claim is still false if we replace θ by θ AB ). Fig. 7 shows the reduced versions of these networks, and they are clearly non isomorphic.
The authors also claim [14,Thm. 3] that θ satisfies the separation property on the subclass of reduced reconstructible phylogenetic networks (that is, of reconstructible phylogenetic networks that remain untouched under the reduction procedure). This is also wrong. Consider for instance the networks N 9 and N 10 depicted in Fig. 8 in the Appendix. They are reconstructible phylogenetic networks, and they are reduced because the only convergent sets they contain consist of a hybrid node and a leaf that is its only child, and therefore the application of the reduction procedure leaves them untouched. Table 7 shows that these two networks have the same sets of AB-weighted tripartitions, but they are clearly non-isomorphic.

Tree-child phylogenetic networks
We have seen in previous sections that neither the lack of convergent pairs of nodes, nor the tree-sibling condition or even the property of being reduced, in all cases combined with the strong time consistency condition, guarantee the separation property for θ AB . In this section we introduce a stronger condition that, by itself, does not guarantee this separation property either, but that combined with condition (4.3.a) makes d θ satisfy the separation property. Even more, it makes bipartitions π satisfy the separation property.
We shall say that a DAG satisfies the tree-child condition, or simply that it is tree-child, when every node other than a leaf has at least one tree child. A tree-child phylogenetic network is a rooted tree-child DAG with no tree node of out-degree 1 and all hybrid nodes of out-degree exactly 1 (and any in-degree greater than 1). So, tree-child phylogenetic networks can be understood as models of reticulated evolution where: • The tree nodes represent species.
• The hybrid nodes represent recombination or lateral gene transfer events that yield the species corresponding to their single tree child.
• Every species other that the extant ones, represented by the leaves, have some descendant through mutation.
The (even enriched) tripartitions introduced so far do not satisfy the separation property on the subclass of all tree-child phylogenetic networks. Consider for instance the networks N 11 and N 12 depicted in Fig. 9 in the Appendix. Table 8 provides the AB-weighted tripartitions and reticulation scenarios of their arcs, showing that these networks cannot be distinguished using this information.
But if we add to the tree-child condition the weakest form of time consistency, namely condition (4.3.a) (two parents of a hybrid node cannot be connected by a path), then θ satisfies the separation property on the resulting subclass of phylogenetic networks. Actually, it turns out that the bare sets of clusters of nodes (without distinguishing between strict and non-strict descendants, and without taking into account the numbers of hybrid nodes in paths to leaves) are enough to characterize these phylogenetic networks up to isomorphism (Thm. 8), which entails that π satisfies the separation property, just as in phylogenetic trees.
To prove these facts, we need to establish some preliminary definitions and results. We shall denote henceforth by C (N ) (v) the cluster of a node v in a DAG N labeled in S, to emphasize the network. For every DAG N = (V, E), let C(N ) denote the set of clusters of its nodes: A tree path in a DAG N is a path consisting entirely of tree arcs. A node v is a tree descendant of a node u when there exists a tree path from u to v.
Lemma 2. Every node v in a tree-child phylogenetic network has some tree descendant leaf.
Proof. If v is not already a leaf, we can construct a tree path starting in v by successively taking tree children, and this path will end in a leaf that will be a tree descendant of v. Proof. Let (u, v 1 , . . . , v k−1 , v) be the tree path u v in the statement: to simplify the notations, we call v 0 = u and v k = v. Let now w v be any other path ending in v and let v j be the first node in the path u v such that (v j , . . . , v k ) is contained in w v. If j = 0, then v j has only one parent, and therefore it must happen that either v j = w or v j 's parent in the path w v is also its parent in the path u v, and in particular it also belongs to this path, which contradicts the assumption on v j . This proves that either v j = w, in which case the path u v contains the path w v, or v j = u, in which case the path w v contains the path u v.

Corollary 4.
If v is a tree descendant of u in a DAG N , then v ∈ A(u) and the path u v is unique.
Proof. If v is a tree descendant of u, then there exists a tree path u v. Then, by the previous lemma, every path from a root r to v must contain this path u v, which shows that v is a strict descendant of u, and every other path from u to v must contain (and hence be equal to) this path u v. N = (V, E) be a tree-child phylogenetic network satisfying condition (4.3.a). For every nodes u, v ∈ V , the following conditions are equivalent:

Lemma 5. Let
v} are a hybrid node and its only child.
Proof. The implication (ii)=⇒(i) is obvious. As far as the implication (i)=⇒(ii) goes, assume that C (N ) (u) = C (N ) (v) and that u = v. If s is a tree descendant leaf of u, then s ∈ C (N ) (v), and hence, by Lemma 3, either u belongs to the path v s or v belongs to the path u s. Therefore, u and v are connected by a path. To fix ideas, assume that there exists a path u v. Then we must distinguish three cases: • If u is a tree node and it has some tree child w outside the path u v, then every tree descendant leaf s of w is a tree descendant leaf of u and hence, since C (N ) (u) = C (N ) (v), a descendant of v. By the uniqueness of the path u s (Corollary 4), the tree path u s must be equal to the concatenation of the path u v and the path v s, but these paths are different because their first arcs are different. This yields a contradiction.
• If u is a tree node and all its children outside the path u v are hybrid, take one such hybrid child w. Let s be any tree descendant leaf of w. Then s ∈ C (N ) (u) = C (N ) (v) and therefore there exists a path v s. Now, by Corollary 4, the path w s is unique, and therefore the path u s is also unique. Indeed, given any path u s, by Lemma 3 and since u cannot be a descendant of w, the path w s must be contained in this path u s, and since no other parent of w is a descendant of u by (4.3.a), the only possibility is that the first arc of this path is (u, w) and then the rest of the path is the tree path w s.
This means that the path obtained by concatenating the paths u v and v s must be equal to the path u s through w, but, again, these paths are different because their first arcs are different. This yields again a contradiction.
• If u is a hybrid node and u ′ is its unique tree child, then C (N ) (u ′ ) = C (N ) (u) = C (N ) (v) and u ′ must be the first node after u in the path u v. This yields a path u ′ v with C (N ) (u ′ ) = C (N ) (v) and u ′ a tree node. The last two points have shown that the assumption that u ′ = v leads to a contradiction, while u ′ = v is clearly possible.
In summary, the only situation that does not lead to a contradiction is when u is a hybrid node and v its only child. Lemma 6. Let N = (V, E) be a tree-child phylogenetic network satisfying condition (4.3.a).
For every nodes u, v ∈ V such that C (N ) (u) = C (N ) (v), the following two conditions are equivalent: (i) There is a non-trivial path u v.
, and by assumption these clusters are different. As far as the converse implication goes, assume that C (N ) (v) C (N ) (u), and let s be a tree descendant leaf of v. Then s ∈ C (N ) (u) and Lemma 3 entails that u and v are connected by a path. Since clusters decrease with paths, this path must be u v. Now, given a tree-child phylogenetic network N = (V, E) satisfying condition (4.3.a), its contracted version is the DAG N ′ = (V ′ , E ′ ) obtained from N by contracting into one node each pair of nodes consisting of a hybrid node and its only child: more specifically, for every hybrid node u, ifū is its only child andū 1 , . . . ,ū k the children ofū, then we remove this nodeū and the arcs incident to it, and we replace the latter by new arcs (u,ū 1 ),. . . , (u,ū k ). In this way, we understand V ′ as a subset of V , consisting of all nodes of N except the children of hybrid nodes.
It is clear that because each pair of nodes in N with the same cluster has been contracted to a single node in N ′ . In particular, the mapping is bijective. On the other hand, for every u, v ∈ V ′ , there exists a path u v in N if and only if there exists a path u v in N ′ . Therefore, from Lemma 6 we deduce that there exists a path u v in N ′ if and only if C (N ′ ) (v) ⊆ C (N ′ ) (u): that is, the inclusion of clusters in N ′ captures exactly the path ordering in N ′ , which is the restriction to V ′ of the path ordering on N . Lemma 7. Let N be a tree-child phylogenetic network satisfying condition (4.3.a), and let N ′ = (V ′ , E ′ ) be its contracted version. For every u ∈ V ′ , let Then, the maximal elements of M u with respect to the path ordering on N ′ are exactly the children of u in N ′ .
Proof. If u is a leaf, then C (N ′ ) (u) = {u} and M u = ∅, and the thesis of the statement clearly holds. So, assume that u is not a leaf. Then, every descendant of u is in M u and therefore M u is non-empty.
Since M u is finite, it has maximal elements. Let v be any such a maximal element. Since C (N ′ ) (v) C (N ′ ) (u), there exists a non trivial path u v in N ′ . If this path passes through some other node w, then C (N ′ ) (v) C (N ′ ) (w) C (N ′ ) (u), against the assumption that v is maximal in M u . Therefore, the path u v has length 1 and v is a child of u.
Conversely, let v be a child of u. If it is not maximal in M u , then there exists a path u v different from the arc (u, v). Let w be the parent of v in this path. Then v has (at least) two parents, u and w, and there is a path u w in N ′ . When we translate this situation to N , we have essentially four possibilities: • v is a hybrid node with parents u, w and there exists a path u w in N connecting them.
• v is a hybrid node with parents u and the tree childw of the hybrid node w. Then the path u w in N ′ corresponds to a path u w in N that, followed by the arc (w,w), yields a path u w.
• v is a hybrid node with parents w and the tree childū of the hybrid node u. Then the path u w in N ′ corresponds to a path u w in N , and sinceū is the only child of u, the latter contains a pathū → w.
• v is a hybrid node with parents the tree childw of the hybrid node w and the tree childū of the hybrid node u. Then the path u w in N ′ corresponds to a path u w in N . Arguing as in the last two points (simultaneously), we deduce that there exists a pathū w in N .
In all four cases, we obtain a hybrid node of N and a path connecting two parents of it, which contradicts (4.3.a). This implies that v must be maximal in M u .
Theorem 8. For every tree-child phylogenetic networks N 1 and N 2 satisfying the weak time consistency property (4.3.a), Proof. Assume that C(N 1 ) = C(N 2 ), and let N ′ is maximal in M f ′ (u) (because these sets are defined through the corresponding clusters, and the path ordering in N ′ 1 and N ′ 2 corresponds to the inclusion of clusters). Therefore, (u, v) ∈ E ′ 1 if and only if (f ′ (u), f ′ (v)) ∈ E ′ 2 . So, f is an isomorphism of DAGs.
Finally, u is a leaf of a DAG if and only if its cluster is the singleton {u}. This entails that f ′ sends leaves to leaves and preserves their labels. Therefore, f ′ is an isomorphism of DAGs labeled in S. Now, the hybrid nodes in each N i are the nodes that have in-degree greater than 1 in the corresponding N ′ i , and N i is obtained from N ′ i by adding a single childū to each hybrid node u and replacing all arcs with tail u by arcs with tailū (and the same heads). This implies that the mapping f : that restricts to f ′ on V ′ 1 and that sends each nodeū in V 1 \ V ′ 1 to the corresponding f ′ (u) (that is, to the only child of the image of the parent ofū) is bijective and preserves and reflects the arcs and preserves the leaves' labels. Therefore, it is an isomorphism of phylogenetic networks.
Corollary 9. The bipartition π, and hence also θ, θ B , θ AB , and Ψ, satisfy the separation property on the subclass of all tree-child phylogenetic networks where no pair of parents of a hybrid node is connected by a path.
Corollary 10. For every Υ = π, θ, θ B , θ AB , Ψ, the mapping defines a distance on the subclass of all tree-child phylogenetic networks where no pair of parents of a hybrid node is connected by a path.

Conclusion
In a series of technical reports and papers culminating in [14], Moret, Nakhleh, Warnow and collaborators have introduced an error metric for phylogenetic networks, with the main goal of comparing reconstructed networks with true ones and to assess in this way the accuracy of phylogenetic network reconstruction algorithms. In this paper we have shown that none of their approaches is free from false equalities: that is, for every one of the metrics they introduce, there turn out to exist pairs of phylogenetic networks in the subclass where the metric is defined, that are non-isomorphic (or, in the case of [14], have non-isomorphic reduced versions) but cannot be distinguished through the metric. The reason for this lack of discriminating power is that non-isomorphic networks in the subclasses under consideration may have the same sets of tripartitions, which are the networks' representations that are compared by this metric. Among these subclasses of networks where the error metric fails, we want to stress the tree-sibling, strongly time consistent phylogenetic networks (see Section 7), for which several reconstruction algorithms were recently proposed [9,10].
We have also shown a subclass of phylogenetic networks, the tree-child, weakly time consistent phylogenetic networks, where tripartitions, and even bipartitions in the sense of Bourque-Robinson-Foulds, single out its members, and therefore they can be used to define a true metric. Tree-child phylogenetic networks can be seen as models of reticulate evolution histories where every species other than the extant ones have some descendant through mutation.
Several questions and problems arise as a consequence of our work that are in our current research agenda. On the one hand, what is the discriminating power of tripartitions? Is there a well-defined class of phylogenetic networks where equality of sets, or multisets (sets with repetitions), of tripartitions implies isomorphism? And, what does it really mean, from the topological point of view, to have the same (multi)sets of tripartitions?
On the other hand, it is still necessary to define true distances generalizing the bipartition distance, on more general subclasses of phylogenetic networks than those tree-child, weakly time consistent. We have recently defined one such metric (not based on tripartitions) on the class of all tree-child phylogenetic networks [5], but, in the light of [9,10], we consider a more relevant target the class of all tree-sibling networks.          Table 7: Tripartitions of the networks in Fig. 8 r a b