betaFeedback

WorksAgricultural and Biological Sciences

Encoding level-3 semi-directed phylogenetic networks by quarnets and quinnets

Abstract

Phylogenetic networks generalize phylogenetic trees as models of evolutionary history, allowing lineages to merge as well as to diverge. For many types of genetic data the root position of such a network cannot be recovered, so that only a semi-directed network can be inferred: a mixed graph in which only the edges entering a reticulation vertex are directed. A common strategy for inferring such a network is to first infer the subnetwork it induces on each set of k≥3k\geq 3 of its leaves, called a kk-net, and then to assemble these pieces. This can only succeed if the kk-nets determine the network, in which case that network is said to be encoded by its kk-nets. Semi-directed networks of level-1 and 2, those whose biconnected components contain at most one, respectively two, reticulations, are known to be encoded by their 44-nets, or quarnets, whereas level-3 networks are not. Even so, in this paper we show that level-3 semi-directed networks are encoded by their 55-nets, or quinnets, and we characterize the limitation of quarnets exactly: we show that a single previously reported counterexample captures the only obstruction, every other level-3 network being encoded by its quarnets. Our proofs rest on a collection of encoding results for individual structural features of a network, which we establish for networks of arbitrary level and which are of independent interest.

Introduction

Evolutionary histories of collections of species are not always tree-like. Where isolation may cause lineages to diverge, reticulate processes such as hybridization, horizontal gene transfer, and recombination cause lineages to merge. Phylogenetic networks have become the standard combinatorial model in evolutionary biology for representing non-tree-like evolutionary histories [20, 23, 31]. In their rooted form, these networks are a type of directed acyclic graph in which the direction of every edge records the flow of time and the leaves represent a set of extant taxa that correspond to the species of interest. Under several models of DNA evolution, however, the location of the root is unidentifiable: two evolutionary histories differing only in their root position may give rise to the exact same observed data [12, 30, 33]. In such situations, all one can hope to reliably infer is a semi-directed (phylogenetic) network [30], that is, a phylogenetic network in which all edges but the incoming edges of reticulations are undirected (see Figure 1 and Figure 2). Such a semi-directed network may then be rooted if necessary using an outgroup. Consequently, a growing number of software tools return semi-directed networks instead of rooted networks [29], and it is this type of network that concerns us here. In addition, for the sake of simplicity, we will consider only binary networks, i.e., each internal vertex is either a bifurcation (one lineage splits into two) or a reticulation (two lineages combine into one).

Figure 1. (a): A semi-directed phylogenetic network NN on 11 leaves, with 4 reticulations and of level 3. The network was obtained from the rooted network for the Holarctic clade of the fungal genus Xanthoparmelia from Keuler et al. [22] by suppressing the outgroup and then passing to the semi-directed network. Each clade is represented by a single taxon from that clade. (b): One quarnet of NN, which is of level 1. (c): One quinnet of NN, which is of level 2. The directed edges entering reticulations are marked in red; all other edges are undirected. Drawings were produced with PhyloZoo [13].

Rooted, semi-directed, tree-of-blobs, and induced subnetworks

Figure 2. (a): A rooted network N+N^{+} on X={x1,…,x7}\mathcal{X} = \{x_{1}, \ldots, x_{7}\} of level 3. (b): The level-3, semi-directed network NN on X\mathcal{X} obtained from N+N^{+}. (c): The tree-of-blobs TT of NN. (d): The subnetworks of NN induced by {x1,x3,x4,x6,x7}\{x_{1}, x_{3}, x_{4}, x_{6}, x_{7}\} (top) and {x3,x4,x5,x7}\{x_{3}, x_{4}, x_{5}, x_{7}\} (bottom).

One common approach to inferring a (rooted or semi-directed) network is to avoid searching the space of networks on all taxa directly, and instead to infer a network (or a set of trees) on each small subset of taxa [4, 24] and then to assemble these into a single network on all taxa [3, 15, 19, 27, 32]. This design is inherited from the tree setting, where it rests on a classical fact: an unrooted phylogenetic tree is determined by its set of quartets—the trees it induces on four-element subsets of its leaf set [5]. Whether generalized versions of this statement hold for networks is a combinatorial question that precedes any algorithmic considerations. Indeed, unless its small subnetworks uniquely determine a network, no algorithm can be guaranteed to reconstruct it uniquely from them.

We call a kk-leaf subnetwork induced by a semi-directed network NN on nn leaves, for some 3≤k≤n3 \le k \le n, a kk-net of NN, with 4-nets and 5-nets called quarnets and quinnets, respectively (see § 2 for formal definitions and Figure 1 for examples). A network NN is said to be encoded by its kk-nets if no network that is not isomorphic to NN has the exact same set of kk-nets. The general question that is of interest to us in this paper is the following: which semi-directed networks are encoded by their kk-nets, and for which kk?

This is a difficult problem in general, and so much of the work that has been done so far on finding a solution has focused on networks that have low complexity in that they are quite close to being trees. More formally, a binary network is level-kk if every biconnected component of its underlying undirected graph contains at most kk reticulations. In particular, the level-0 networks are precisely the phylogenetic trees, and level-1 networks are those in which all cycles are vertex disjoint.

For rooted networks, subnetwork encoding results are well understood for level at most 3, and also for special classes such as so-called tree-child and orchard networks [17, 21, 26, 28]. However, these results do not transfer directly to semi-directed networks, and only one result is known in that setting: Huber et al. [18] showed that binary, level-2 (and hence level-1), semi-directed networks are encoded by their quarnets. For level-3, however, the picture changes: Figure 7 (generalized from Figure 2 in [18]) exhibits two non-isomorphic level-3 semi-directed networks with identical quarnets, showing that quarnets no longer suffice to encode all level-kk networks beyond level-2. Consequently, even if one were able to infer the complete set of quarnets perfectly from data, no reconstruction algorithm based solely on assembling quarnets would be able to uniquely recover the underlying network. This leaves open the problem of whether subnetworks on a larger number of leaves suffice to encode level-3 networks.

Two level-3 semi-directed networks and their induced quarnet types

Figure 7. (a): Two level-3, semi-directed networks N1N_1 and N2N_2 on leaf set {a1,…,am,b1,b2,b3}\{a_1,\ldots,a_m,b_1,b_2,b_3\} (m≥2m \ge2), both having the same generator of type 14. N1N_1 and N2N_2 are not isomorphic but are isomorphic modulo reversing the top side. (b): The types of quarnets induced by both N1N_1 and N2N_2, showing that N1N_1 and N2N_2 have the same sets of induced quarnets. The bottom left quarnet type does not appear when m=2m=2 and the bottom right quarnet type does not appear when m∈{2,3}m \in\{2,3\}. The special case of this example where m=2m=2 appeared as Figure 2 in [18]. The indices satisfy i,j,k,ℓ∈{1,…,m}i,j,k,\ell\in\{1,\ldots,m\} with i<j<k<ℓi<j<k<\ell and p,q∈{1,2,3}p,q \in\{1,2,3\} with p<qp<q.

In this paper, we resolve this question and show that all binary, level-3, semi-directed networks are encoded by their quinnets (Theorem 4.5(b)). Additionally, we show that the structure in Figure 7 is the only obstruction to quarnet encoding: Quarnets encode a level-3 network exactly up to an explicitly described equivalence arising from that example (Theorem 4.5(a)).

Our proofs rely on a collection of encoding results for structural features of a network, and on a case-by-case analysis of the semi-directed level-3 generators, small multi-graphs from which every biconnected component of a network is obtained by attaching leaves along its edges [11] (see Figure 6). Roughly speaking, these features describe which generator a biconnected component has (Proposition 3.3), along which edge of that generator each leaf is attached (Proposition 3.4), and in which order the leaves along an edge appear (Proposition 3.8), and we show that each of them is determined by small subnetworks. These encoding results are established for networks of arbitrary level, and may thus be of independent interest. Together they considerably reduce the case analysis that remains for level-3. Indeed, it suffices to consider generators without parallel edges (Proposition 3.10), and for most of these the encoding of the features already determines the network, leaving only a small number of cases to be treated separately.

Figure 6. The 17 semi-directed level-3 generators. The side S′S' of the generator of type 14 is referred to as its top side.

The remainder of this paper is organized as follows. Section 2 contains preliminaries on mixed graphs, phylogenetic networks, and their generators. Section 3 develops the results on the encoding of certain structural features for networks of arbitrary level. In Section 4 these results are combined with a case analysis to prove our main result for level-3 networks (Theorem 4.5). We conclude with a discussion in Section 5.

Preliminaries

Mixed graphs

A mixed graph is a graph that may contain both undirected and directed edges. A mixed multi-graph may additionally contain parallel edges. In this work, we only consider mixed multi-graphs where all parallel edges appear as pairs of parallel directed edges oriented in the same direction. A directed multi-graph is a mixed multi-graph without undirected edges. For ease of notation, we will use uvuv to denote either a directed edge from uu to vv or an undirected edge between uu and vv.

Suppose that GG is a mixed multi-graph. The indegree of a vertex is the number of incoming directed edges, its outdegree is the number of outgoing directed edges, and its degree is the total number of incident edges (all accounting for multiplicities). A leaf is a degree-1 vertex and a reticulation vertex is a vertex with indegree at least 2. The incoming edges of a reticulation vertex are called reticulation edges. Let vv be a degree-2 vertex whose indegree and outdegree are both not equal to 2 and with incident edges uvuv and vwvw. By suppressing vv, we mean removing vv and adding the edge e=uwe=uw, where ee is directed towards ww if uvuv or vwvw is directed, and ee is undirected if both uvuv and vwvw are undirected. Conversely, by subdividing an edge e=uwe=uw we mean removing ee, adding a subdivision vertex vv, and adding edges e1=uve_1=uv and e2=vwe_2=vw, where e1e_1 is undirected, e2e_2 is directed towards ww if ee was directed towards ww, and e2e_2 is undirected otherwise.

A path PP between two vertices v1v_1 and vpv_p of GG is a sequence of pairwise distinct vertices (v1,…,vp)(v_1,\ldots,v_p), p≥1p\geq1, such that, in case p≥2p\geq2, we have for all i∈{1,…,p−1}i\in\{1,\ldots,p-1\}, that viv_i and vi+1v_{i+1} are adjacent (and may thus be connected by a directed or an undirected edge). We say that the edges between viv_i and vi+1v_{i+1}, i∈{1,…,p−1}i\in\{1,\ldots,p-1\}, are contained in PP. We call PP a semi-directed path (from v1v_1 to vpv_p) if, in addition, each edge vivi+1v_iv_{i+1} contained in PP is undirected or directed towards vi+1v_{i+1}. Furthermore, we call PP an up-down path if there exists some j∈{1,…,p}j\in\{1,\ldots,p\} such that (vj,…,v1)(v_j,\ldots,v_1) and (vj,…,vp)(v_j,\ldots,v_p) are semi-directed paths. Note that semi-directed paths are also up-down paths.

A cycle CC of GG is a sequence of pairwise distinct vertices (v1,…,vp,vp+1=v1)(v_1,\ldots,v_p,v_{p+1}=v_1), p≥3p\geq3, such that (v1,…,vp)(v_1,\ldots,v_p) is a path and v1v_1 and vpv_p are adjacent. The edges contained in CC are the edges contained in the path (v1,…,vp)(v_1,\ldots,v_p) and the edges (v1,vp)(v_1,v_p). We call CC a semi-directed cycle if (v1,…,vp)(v_1,\ldots,v_p) is a semi-directed path from v1v_1 to vpv_p and the edges (v1,vp)(v_1,v_p) are undirected or directed towards v1v_1.

We call GG connected if there exists a path between each pair of vertices. Otherwise we call GG disconnected. In case GG is connected, a cut-edge of GG is an edge whose removal results in a disconnected graph. A blob in GG is a maximal connected subgraph of GG without any cut-edges and an edge is incident to a blob BB if exactly one of its incident vertices is a vertex in BB. An mm-blob, m≥1m\geq1, is a blob in GG that is incident to mm edges. Thus, each leaf of GG is a 1-blob, whereas a 2-blob of GG can be a single degree-2 vertex, or a more complex structure. By contracting an mm-blob, m≥2m\geq2, we mean identifying all the vertices in the blob (and removing self-loops). By suppressing a 2-blob, we mean contracting the 2-blob and additionally suppressing the resulting degree-2 vertex if it does not have indegree 2 or outdegree 2.

An isomorphism from a mixed multi-graph GG with leaf set X\mathcal{X} to another mixed multi-graph HH on the same leaf set is a bijection between their vertex sets which is the identity on X\mathcal{X} such that an edge between two vertices in GG exists if and only if an edge between the corresponding vertices in HH exists and such that, for each edge in GG, the corresponding edge in HH has (i) the same type (directed or undirected); (ii) the same orientation in the directed case; and (iii) the same multiplicity. In addition, GG is isomorphic to HH, denoted by G≅HG\cong H, if there exists an isomorphism from GG to HH. An isomorphism from a mixed multi-graph to itself is an automorphism.

Phylogenetic networks

Throughout, we assume X\mathcal{X} to be a set of at least two elements and we let n=∣X∣n=|\mathcal{X}|. In the context of phylogenetics these elements represent taxa: the taxonomic units under consideration.

Definition 2.1 (Rooted network). A (binary) rooted (phylogenetic) network on X\mathcal{X} is a rooted, directed acyclic graph N+N^+ such that (i) the root has indegree zero and outdegree two; (ii) the leaves have indegree one, outdegree zero or they are bijectively labelled by X\mathcal{X}; (iii) all other vertices either have indegree one and outdegree two, or indegree two and outdegree one.

Given a rooted network on X\mathcal{X}, we will use X\mathcal{X} to also refer to its leaf set, since the leaves of the network and the set of taxa X\mathcal{X} are in bijection. Throughout this work, we make the common assumption that all rooted networks on X\mathcal{X} are LSA networks [8]: rooted networks in which the root is the lowest stable ancestor of X\mathcal{X}, i.e., it is the lowest vertex through which all directed paths from the root to any leaf in X\mathcal{X} must pass. See Figure 2a for an example rooted network.

Definition 2.2 (Semi-directed network). A (binary) semi-directed (phylogenetic) network on X\mathcal{X} is a mixed graph NN that can be obtained from a rooted LSA network N+N^{+} on X\mathcal{X} by undirecting all non-reticulation edges and, exhaustively, identifying parallel edges, suppressing degree-2 vertices, and suppressing 2-blobs until this is no longer possible.

We again use X\mathcal{X} to refer to the leaf set of a semi-directed network on X\mathcal{X}. We note that the notion of a semi-directed network is well-defined, since the order of the operations in Definition 2.2 does not change the resulting network, as shown in [18]. Also note that in some definitions of semi-directed networks, parallel edges and 2-blobs are preserved (see § 5 for a discussion on how our results translate to that setting). See Figure 2b for an example of a semi-directed network.

A (semi-directed or rooted) network is called (i) simple, if it contains at most one mm-blob, m≥3m \ge3; (ii) *level-kk, k≥0k \ge0, if there are at most kk reticulation vertices in each blob of the network; and (iii) *strictly level-kk, k≥1k \ge1, if it is level-kk and not level-(k−1)(k - 1). Observe that both the rooted network N+N^{+} in Figure 2a and the semi-directed network NN in Figure 2b are strictly level-3. Neither of the networks is simple. A semi-directed network NN on X\mathcal{X} without reticulation vertices is an (unrooted) phylogenetic tree (so that, in particular, all of the edges in the tree are undirected). The tree-of-blobs of NN is the (possibly non-binary) phylogenetic tree on X\mathcal{X} obtained by contracting every mm-blob, m≥3m \ge3, to a single vertex (see Figure 2c).

In Definition 2.3 we formalize the notion of a subnetwork, which is again well-defined (see [18]).

Definition 2.3 (Subnetwork). Given a semi-directed network NN on X\mathcal{X} and some Y⊆X\mathcal{Y} \subseteq\mathcal{X} with ∣Y∣≥2|\mathcal{Y}| \ge2, the subnetwork of NN induced by Y\mathcal{Y} is the semi-directed network N∣YN|_{\mathcal{Y}} on Y\mathcal{Y} obtained from NN by taking the union of all up-down paths between leaves in Y\mathcal{Y}, followed by exhaustively identifying parallel edges, suppressing degree-2 vertices, and suppressing 2-blobs until this is no longer possible.

A 4-leaf subnetwork induced by an nn-leaf semi-directed network NN is called a quarnet (of NN) and a 5-leaf subnetwork a quinnet (see Figure 2d); in general we call a kk-leaf subnetwork a kk-net (of NN). We denote the set of pairwise non-isomorphic kk-nets of NN by Sk(N)\mathcal{S}_{k}(N), where 3≤k≤n3 \le k \le n. By abuse of notation, we also put Sk(N)=Sn(N)\mathcal{S}_{k}(N) = \mathcal{S}_{n}(N) for k≥nk \ge n and Sk(N)=Smin⁡{3,n}(N)\mathcal{S}_{k}(N) = \mathcal{S}_{\min\{3,n\}}(N) for k∈{0,1,2}k \in\{0,1,2\}.

For two sets of semi-directed networks S,S′\mathcal{S}, \mathcal{S}', we write S≃S′\mathcal{S} \simeq\mathcal{S}' if there exists a bijection ϕ:S→S′\phi: \mathcal{S} \to\mathcal{S}' such that N≃ϕ(N)N \simeq\phi(N) for all N∈SN \in\mathcal{S}. We say that a semi-directed network NN is encoded by kk-nets, k≥2k \ge2, if for every binary semi-directed network N′N' with Sk(N)≃Sk(N′)\mathcal{S}_{k}(N) \simeq\mathcal{S}_{k}(N') it holds that N≃N′N \simeq N'. We say that a class C\mathcal{C} of networks is encoded by kk-nets if each network in C\mathcal{C} is encoded by kk-nets.

Generators

Given a simple rooted network N+N^{+}, the rooted generator gen⁡(N+)\operatorname{gen}(N^{+}) is the directed multi-graph that can be obtained from N+N^{+} by removing all leaves and their incident edges and suppressing all resulting vertices having both indegree 1 and outdegree 1. Similarly, the semi-directed generator gen⁡(N)\operatorname{gen}(N) of a simple semi-directed network NN is the mixed multi-graph obtained from NN by removing all leaves and their incident edges and suppressing all resulting vertices of degree-2 except those with indegree-2. See Figure 3 for examples. For technical reasons, we define the generator of a simple, strictly level-1, semi-directed network to be a single vertex with a bidirected self-loop. Note that a rooted generator must necessarily have a unique root.

Figure 3. (a): Two simple, level-2, rooted networks N1+N_1^+ and N2+N_2^+. (b): The rooted generators of N1+N_1^+ and N2+N_2^+. (c): The simple, level-2, semi-directed networks N1N_1 and N2N_2 obtained from N1+N_1^+ and N2+N_2^+. (d): The semi-directed generators of N1N_1 and N2N_2.

Definition 2.4 (Generator). A mixed (resp. directed) multi-graph GG is a level-kk, semi-directed (resp. rooted) generator for some integer k≥1k \ge1 if GG is isomorphic to the generator of a simple, strictly level-kk, semi-directed (resp. rooted) network.

We often omit ‘rooted’ or ‘semi-directed’ when referring to a generator if the meaning is clear from context. Observe that the generators in Figure 3 are level-2 generators. Moreover, [18] showed that the two generators in Figure 3d are all of the possible semi-directed level-2 generators.

A side of a (rooted or semi-directed) generator GG is an edge of GG (called an edge side) or a degree-2 vertex of GG with indegree-2 (called a reticulation side). If an edge side is part of a pair of parallel edges, we call it a parallel edge side and refer to the pair as a pair of parallel edge sides. By definition, one can construct a simple (rooted or semi-directed) network from its generator by attaching leaves to its sides. More specifically, a leaf can be attached to a reticulation side by adding a new edge incident to the reticulation side and the leaf. Additionally, leaves can be attached to edge sides by subdividing the edge ℓ≥0\ell\ge0 times and then attaching one leaf to each of the resulting subdivision vertices (by adding a new edge incident to the subdivision vertex and the leaf).

In [11] it was shown how to construct all rooted level-(k+1)(k + 1) generators from the set of level-kk, rooted generators. In addition, in [25], level-kk, semi-directed generators are defined as mixed graphs that can be obtained from level-kk, rooted generators by semi-directing them; more specifically, by undirecting all edges not oriented towards a reticulation, and then suppressing the unique degree-2 root. In the following proposition we prove that the two definitions agree. That is, we prove that one can obtain all level-kk, semi-directed generators from the level-kk, rooted generators by semi-directing them.

Proposition 2.5. A mixed multi-graph GG is a level-kk, semi-directed generator for some integer k≥2k \ge2 if and only if it can be obtained by semi-directing some level-kk, rooted generator G+G^+.

Proof. Let GG be a level-kk, semi-directed generator and let NN be a simple, level-kk, semi-directed network such that G≅gen⁡(N)G \cong\operatorname{gen}(N). By definition, there also exists a rooted network N+N^+ from which NN can be obtained by performing the operations in Definition 2.2. In particular, we can obtain one such network N+N^+ by subdividing a single edge in the ‘source component’1 of NN to create a root ρ\rho and then orienting all edges away from it [16]. Consequently, GG and G+=gen⁡(N+)G^+ = \operatorname{gen}(N^+) have the exact same vertex set, except for the addition of an outdegree-2 vertex (which corresponds to ρ\rho) in G+G^+. Moreover, each reticulation side of GG corresponds to exactly one reticulation side in G+G^+. Thus, semi-directing G+G^+ yields GG. Conversely, suppose that GG is a mixed multi-graph that can be obtained by semi-directing some level-kk, rooted generator G+G^{+}. Let N+N^{+} be a rooted network with root ρ\rho such that gen⁡(N+)≅G+\operatorname{gen}(N^{+}) \cong G^{+}. Note that we may choose N+N^{+} such that it has at least one leaf attached to every side. Consequently, when performing the operations of Definition 2.2 to obtain the corresponding semi-directed network NN, no parallel edges will appear after suppressing the root ρ\rho. Hence, NN only differs from N+N^{+} by the suppression of ρ\rho and the non-reticulation edges being undirected. An argument similar to that in the previous paragraph can then be used to show that by construction gen⁡(N)≅G\operatorname{gen}(N) \cong G.

In Proposition 2.3 of [11] it was shown that level-kk, rooted generators, for k≥1k \ge1, have at most 3k−13k-1 vertices and 4k−24k-2 edges. Suppressing the root removes one vertex and one edge. Consequently, Proposition 2.5 immediately yields the following bounds.

Corollary 2.6. A level-kk, semi-directed generator, k≥1k \ge1, has at most 3k−23k-2 vertices and 4k−34k-3 edges.

Following terminology for rooted networks [21, 26], we call a set of sides of a level-kk (rooted or semi-directed) generator GG a set of crucial sides if it contains all reticulation sides and at least one parallel edge side of each pair of parallel edge sides. The cruciality of GG is the size of its smallest set of crucial sides. A crucial leaf set of a simple (rooted or semi-directed) network NN on X\mathcal{X} is a set of leaves Y⊆XY \subseteq\mathcal{X} such that the sides they are attached to form a set of crucial sides. The cruciality of NN is the cruciality of its generator, or equivalently, the size of its smallest crucial leaf set. We call NN kk-crucial, if its cruciality is at most kk.

As an example, {y3,y4}\{y_3, y_4\} forms a smallest set of crucial leaves of the strictly level-2 network N2N_2 in Figure 3c (bottom). Hence, N2N_2 is 2-crucial. On the other hand, {x2}\{x_2\} is the unique smallest set of crucial leaves of the strictly level-2 network N1N_1 in Figure 3c (top). So, N1N_1 is 1-crucial.

By noting that each pair of parallel edge sides and each reticulation side of a level-kk generator correspond to a unique indegree-2 vertex of the generator, which in turn corresponds uniquely to one of the kk reticulation vertices of a strictly level-kk network, we observe the following.

Observation 2.7. Let NN be a simple, level-kk, semi-directed network. Then, the cruciality of NN is at most kk.

Note that the semi-directed network N1N_1 from Figure 3c shows that the cruciality of a simple, strictly level-kk, semi-directed network can be strictly smaller than kk. The cruciality of a simple, strictly level-1, semi-directed network is always equal to 1. The following further useful cruciality bound follows by remarking that the construction from [11] for building rooted generators ensures that each level-kk, rooted generator (and thus each level-kk, semi-directed generator), k≥1k \ge1, has at least one reticulation side.

Observation 2.8. Let NN be a simple, semi-directed network whose generator has a pair of parallel edge sides. Then, the cruciality of NN is at least 2.

Encoding features of level-kk networks by subnetworks

In this section, we show that certain structural features of kk-crucial (and in particular all level-kk), semi-directed networks are encoded by subnetworks of bounded size. Our encoding results require subnetworks with at least three leaves. Recall that for m∈{0,1,2}m \in\{0,1,2\} and a semi-directed network NN on nn leaves, we adopted the convention Sm(N)=Smin⁡{3,n}(N)\mathcal{S}_m(N)=\mathcal{S}_{\min\{3,n\}}(N) (see § 2), implicitly allowing additional arbitrary leaves to be added when the induced subnetwork has fewer than three leaves.

We first restate a result from [18], showing that the tree-of-blobs of a semi-directed network is encoded by its quartets. Note that a similar result was shown in [1] in a slightly different setting.

Proposition 3.1 (Cor. 5.6 [18]). Let N1N_1 and N2N_2 be two semi-directed networks on X\mathcal{X} and let T1T_1 and T2T_2 be their respective trees-of-blobs. If S4(N1)≅S4(N2)S_4(N_1) \cong S_4(N_2), then T1≅T2T_1 \cong T_2.

We now prove an important fact concerning crucial leaves (Lemma 3.2). See [21], Lemma 1 for a similar result but for rooted networks and restricted to the case that ∣Y∣=3|Y|=3. As a consequence we show in Proposition 3.3 that if two simple, kk-crucial, semi-directed networks have the same sets of kk-nets then they have the same generators.

Lemma 3.2. Let NN be a simple, semi-directed network on X\mathcal{X} and let Y⊆XY \subseteq\mathcal{X} with ∣Y∣≥3|Y| \ge3. Then, Y⊆XY \subseteq\mathcal{X} is a set of crucial leaves of NN if and only if N∣YN|Y is simple and gen⁡(N)≅gen⁡(N∣Y)\operatorname{gen}(N) \cong\operatorname{gen}(N|Y).

Proof. Let Y\mathcal{Y} be a set of crucial leaves of NN and set Z=X∖Y\mathcal{Z}=\mathcal{X}\setminus\mathcal{Y}. We show that N∣YN|_{\mathcal{Y}} is simple and gen⁡(N)≅gen⁡(N∣Y)\operatorname{gen}(N)\cong\operatorname{gen}(N|_{\mathcal{Y}}) by repeatedly removing leaves in Z\mathcal{Z}. This is trivial if Z=∅\mathcal{Z}=\varnothing, so take any x∈Zx\in\mathcal{Z}. Since x∉Yx\notin\mathcal{Y}, it is neither attached to a reticulation side nor the unique leaf attached to a pair of parallel edge sides. Thus, constructing N∣X∖{x}N|_{\mathcal{X}\setminus\{x\}} from NN amounts solely to deleting the leaf xx and suppressing a degree-2 vertex, keeping the network simple and leaving the generator unchanged. Moreover, the leaves in Y\mathcal{Y} form a set of crucial leaves of N∣X∖{x}N|_{\mathcal{X}\setminus\{x\}}. Repeating this procedure for every leaf in Z\mathcal{Z} yields N∣YN|_{\mathcal{Y}} while keeping the network simple and preserving the generator throughout. Hence, N∣YN|_{\mathcal{Y}} is simple and gen⁡(N)≅gen⁡(N∣Y)\operatorname{gen}(N)\cong\operatorname{gen}(N|_{\mathcal{Y}}).

Conversely, suppose that Y\mathcal{Y} is not a crucial leaf set of NN. Then, there is either a reticulation side or a pair of parallel edge sides with no attached leaf in Y\mathcal{Y}. In the first case, it is clear that N∣YN|_{\mathcal{Y}} has at least one reticulation vertex fewer than NN. Since we identify parallel edges in the construction of N∣YN|_{\mathcal{Y}} (Definition 2.3), a similar argument applies in the second case. It follows that N∣YN|_{\mathcal{Y}} has a strictly lower level than NN. Thus, either N∣YN|_{\mathcal{Y}} is not simple, or, if it is, gen⁡(N)≇gen⁡(N∣Y)\operatorname{gen}(N)\not\cong\operatorname{gen}(N|_{\mathcal{Y}}).

Proposition 3.3. Let N1N_1 and N2N_2 be two simple, kk-crucial, semi-directed networks on X\mathcal{X}. If Sk(N1)≅Sk(N2)S_k(N_1)\cong S_k(N_2), then gen⁡(N1)≅gen⁡(N2)\operatorname{gen}(N_1)\cong\operatorname{gen}(N_2).

Proof. Let r1r_1 (resp. r2r_2) be the number of reticulations of N1N_1 (resp. N2N_2). Assume without loss of generality that r1≥r2r_1\ge r_2. Let Y⊆X\mathcal{Y}\subseteq\mathcal{X} be a smallest set of crucial leaves of N1N_1 and note that ∣Y∣≤k|\mathcal{Y}|\le k. By Lemma 3.2, gen⁡(N1)≅gen⁡(N1∣Y)\operatorname{gen}(N_1)\cong\operatorname{gen}(N_1|_{\mathcal{Y}}). Since Sk(N1)≅Sk(N2)S_k(N_1)\cong S_k(N_2), we have N1∣Y≅N2∣YN_1|_{\mathcal{Y}}\cong N_2|_{\mathcal{Y}}, and so gen⁡(N1∣Y)≅gen⁡(N2∣Y)\operatorname{gen}(N_1|_{\mathcal{Y}})\cong\operatorname{gen}(N_2|_{\mathcal{Y}}). Thus, gen⁡(N1)≅gen⁡(N2∣Y)\operatorname{gen}(N_1)\cong\operatorname{gen}(N_2|_{\mathcal{Y}}) and both have r1r_1 reticulations. Observe that N2∣YN_2|_{\mathcal{Y}} can have at most r2r_2 reticulations, since constructing a subnetwork never creates reticulations. By assumption, we also have r1≥r2r_1\ge r_2, so N2∣YN_2|_{\mathcal{Y}} and N2N_2 have the same number of reticulations. It follows that Y\mathcal{Y} is a set of crucial leaves of N2N_2 (see the proof of Lemma 3.2), and thus gen⁡(N2∣Y)≅gen⁡(N2)\operatorname{gen}(N_2|_{\mathcal{Y}})\cong\operatorname{gen}(N_2) by Lemma 3.2, proving the result.

We call an automorphism of a generator reticulation-preserving if (i) it maps each reticulation side to itself; and (ii) it maps each pair of parallel edge sides to itself. We define the side-equivalence relation on the sides of a generator GG as follows: two sides are side-equivalent if there exists a reticulation-preserving automorphism of GG mapping the two sides to each other. Note that the reflexive, symmetric, and transitive properties of an equivalence relation indeed hold. We denote by E(G)\mathcal{E}(G) the set of side-equivalence classes of GG. See Figure 4a for an example: the edge sides labeled B1B_1 in generator G1G_1 all lie in the same side-equivalence class, as G1G_1 admits several symmetries. In particular, a reticulation-preserving automorphism exists that maps the two vertices (in black) of the edge side labeled A1A_1 to each other, and similarly a reticulation-preserving automorphism exists that maps the gray vertices to one another. For generator G2G_2, however, the edge sides labeled B2B_2 and C2C_2, as well as D2D_2 and E2E_2, are not in the same class, since any reticulation-preserving automorphism must map each pair of parallel edge sides to itself.

Two semi-directed level-3 generators and semi-directed networks

Figure 4. (a): Two semi-directed level-3 generators G1G_1 and G2G_2. Sides with the same labels are side-equivalent (see text for further explanation). (b): Two non-isomorphic semi-directed networks on {x1,…,x6}\{x_1,\ldots,x_6\} that both have G1G_1 as their generator. The two networks are leaf-side consistent, since the sides to which each leaf is attached in the two networks are from the same side-equivalence classes of G1G_1. (c): Two non-isomorphic semi-directed networks on {y1,…,y6}\{y_1,\ldots,y_6\} that both have G2G_2 as their generator. The two networks are not leaf-side consistent, since the sides to which y5y_5 is attached in the two networks are from different side-equivalence classes of G2G_2.

Given a simple, semi-directed network NN on X\mathcal{X} and a generator G≅gen⁡(N)G\cong\operatorname{gen}(N), the leaf-to-side function σN:X→E(G)\sigma_N:\mathcal{X}\to\mathcal{E}(G) maps each leaf in X\mathcal{X} to the side-equivalence class of GG in which the side that it is attached to is contained. An isomorphism ψ:gen⁡(N1)→gen⁡(N2)\psi:\operatorname{gen}(N_1)\to\operatorname{gen}(N_2) between generators of two networks N1,N2N_1,N_2 maps side-equivalence classes to side-equivalence classes, and thus induces a bijection ψ∗:E(gen⁡(N1))→E(gen⁡(N2))\psi_*:\mathcal{E}(\operatorname{gen}(N_1))\to\mathcal{E}(\operatorname{gen}(N_2)). We call two simple, semi-directed networks N1N_1 and N2N_2 on X\mathcal{X} leaf-side consistent if there is such an isomorphism ψ\psi with ψ∗(σN1(x))=σN2(x)\psi_*(\sigma_{N_1}(x))=\sigma_{N_2}(x) for all x∈Xx\in\mathcal{X}. See Figure 4b and c.

Without loss of generality, we assume that, when two simple networks have isomorphic generators, they have the same generator GG. Moreover, when N1,N2N_1,N_2 are leaf-side consistent, we assume that σN1(x)=σN2(x)\sigma_{N_1}(x)=\sigma_{N_2}(x) for all x∈Xx\in\mathcal{X}, i.e., each leaf is attached to sides from the same side-equivalence class of GG in N1N_1 and in N2N_2.

By observing that the side-equivalence class containing the side to which a leaf xx is attached can be determined from a subnetwork with the same generator as the original network, we obtain the following.

Proposition 3.4. Let N1N_1 and N2N_2 be two simple, kk-crucial, semi-directed networks on X\mathcal{X}. If Sk+1(N1)≅Sk+1(N2)S_{k+1}(N_1)\cong S_{k+1}(N_2), then N1N_1 and N2N_2 are leaf-side consistent.

Proof. By Proposition 3.3, we may assume gen⁡(N1)≅gen⁡(N2)\operatorname{gen}(N_1)\cong\operatorname{gen}(N_2). Towards a contradiction, assume that N1N_1 and N2N_2 are not leaf-side consistent. Let x∈Xx\in\mathcal{X} be such that σN1(x)≠σN2(x)\sigma_{N_1}(x)\ne\sigma_{N_2}(x). Let Y⊂X\mathcal{Y}\subset\mathcal{X} be a set of kk crucial leaves of N1N_1 and let Z=Y∪{x}\mathcal{Z}=\mathcal{Y}\cup\{x\}. Since Sk+1(N1)≅Sk+1(N2)S_{k+1}(N_1)\cong S_{k+1}(N_2), we have N1∣Z≅N2∣ZN_1|_{\mathcal{Z}}\cong N_2|_{\mathcal{Z}}, so gen⁡(N1∣Z)≅gen⁡(N2∣Z)\operatorname{gen}(N_1|_{\mathcal{Z}})\cong\operatorname{gen}(N_2|_{\mathcal{Z}}). By Lemma 3.2, gen⁡(N1)≅gen⁡(N1∣Z)\operatorname{gen}(N_1)\cong\operatorname{gen}(N_1|_{\mathcal{Z}}). Therefore, N1N_1, N2N_2, N1∣ZN_1|_{\mathcal{Z}} and N2∣ZN_2|_{\mathcal{Z}} all have the same generator. But since σN1(x)≠σN2(x)\sigma_{N_1}(x)\ne\sigma_{N_2}(x), we get σN1∣Z(x)≠σN2∣Z(x)\sigma_{N_1|_{\mathcal{Z}}}(x)\ne\sigma_{N_2|_{\mathcal{Z}}}(x). So, N1∣Z≇N2∣ZN_1|_{\mathcal{Z}}\not\cong N_2|_{\mathcal{Z}}: a contradiction.

We say that a set of leaves of a simple network share a side, if they are attached to the same side of the generator of the network. For example, in Figure 4b, x1x_1 and x2x_2 share a side in either of the two networks. Since pairs of parallel edge sides are always in the same side-equivalence class, two leaves in a pair of leaf-side consistent networks are either both attached to a parallel edge side, or both are not. Note that this does not rule out that two leaves are both attached to a pair of parallel edge sides, but in one network they share a parallel edge side and in the other they are attached to different parallel edge sides of the pair. The following again uses Proposition 3.3, with Part (b) of the proposition relying on the fact that a leaf attached to a parallel edge side must be part of some smallest crucial leaf set.

Proposition 3.5. Let N1N_1 and N2N_2 be two simple, kk-crucial, semi-directed networks on X\mathcal{X}. Let x,y∈Xx,y\in\mathcal{X}. Suppose that one of the following holds.

(a) Sk+2(N1)≅Sk+2(N2)S_{k+2}(N_1)\cong S_{k+2}(N_2); or

(b) Sk+1(N1)≅Sk+1(N2)S_{k+1}(N_1)\cong S_{k+1}(N_2) and xx is attached to a parallel edge side in N1N_1.

Then xx and yy share a side in N1N_1 if and only if they share a side in N2N_2.

Proof. First suppose that Sk+2(N1)≅Sk+2(N2)S_{k+2}(N_1)\cong S_{k+2}(N_2). By Proposition 3.3 we may assume that N1N_1 and N2N_2 have the same generator. Let Y⊆XY\subseteq\mathcal{X} be a set of kk crucial leaves of N1N_1 and let Z=Y∪{x,y}Z=Y\cup\{x,y\}. Since Sk+2(N1)≅Sk+2(N2)S_{k+2}(N_1)\cong S_{k+2}(N_2), we have that N1∣Z≅N2∣ZN_1|_Z\cong N_2|_Z, so gen⁡(N1∣Z)≅gen⁡(N2∣Z)\operatorname{gen}(N_1|_Z)\cong\operatorname{gen}(N_2|_Z). By Lemma 3.2, we obtain gen⁡(N1)≅gen⁡(N1∣Z)\operatorname{gen}(N_1)\cong\operatorname{gen}(N_1|_Z). Therefore, N1N_1, N2N_2, N1∣ZN_1|_Z and N2∣ZN_2|_Z all have isomorphic generators. It follows that xx and yy share a side in N1N_1 if and only if they share a side in N1∣Z≅N2∣ZN_1|_Z\cong N_2|_Z if and only if they share a side in N2N_2. This proves the proposition in case (a) holds. If (b) holds, observe that we can choose YY such that x∈Yx\in Y.

Before we proceed to the next encoding result (Proposition 3.8), we first require a technical lemma (Lemma 3.7) whose proof is based on the following results in [18] and [16]. Call a cycle CC in a semi-directed network good if there exists exactly one reticulation vertex rr (called the sink) in NN such that CC contains both reticulation edges that enter rr. A good cycle is excellent if its sink is adjacent to a leaf. Lemma 5.4 of [18] states the following, which we explicitly record here since it will be used again later.

Lemma 3.6 (Lem. 5.4 [18]). Let NN be a simple, semi-directed network on X\mathcal{X} that is not a phylogenetic tree. Let ee be an edge of NN between two non-leaf vertices. Then ee is contained in at least one excellent cycle.

Furthermore, the following proof will use Theorem 2 of [16], which states that a semi-directed network cannot contain any semi-directed cycles and that a semi-directed network cannot contain paths between two distinct reticulations containing only undirected edges.

Lemma 3.7. Let NN be a simple, semi-directed network on X\mathcal{X} that is not a phylogenetic tree. Let Y⊆XY\subseteq\mathcal{X} be a set of leaves that share an edge side. Then, there exists a leaf z∈X∖Yz\in\mathcal{X}\setminus Y that is attached to a reticulation side such that N∣Y∪{z}N|_{Y\cup\{z\}} is simple.

Proof. Let m=∣Y∣+1m=|Y|+1. Let ee be one of the edges of NN that corresponds to the edge side to which the leaves in YY are attached. Observe that ee is not a cut-edge. By Lemma 3.6, it follows that ee is contained in at least one excellent cycle CC. Let zz be the leaf adjacent to the sink of this cycle. By Theorem 2 of [16] outlined above, (i) CC is not a semi-directed cycle; and (ii) no set of undirected edges contained in CC forms a path in NN between two reticulations. Hence, all edges in CC are on an up-down path between two leaves in Y∪{z}\mathcal{Y} \cup\{z\}. Letting V(C)V(C) denote the vertex set of CC and observing that all leaves in Y∪{z}\mathcal{Y} \cup\{z\} are adjacent to distinct vertices of V(C)V(C), it follows that N∣Y∪{z}N|_{\mathcal{Y}\cup\{z\}} contains an mm-blob. Since N∣Y∪{z}N|_{\mathcal{Y}\cup\{z\}} also has mm leaves, it follows that N∣Y∪{z}N|_{\mathcal{Y}\cup\{z\}} is simple.

Let S=uvS=uv be an edge side of a generator GG of a simple, semi-directed network NN on X\mathcal{X}, and let Y⊆X\mathcal{Y}\subseteq\mathcal{X} be a set of leaves that is attached to SS. The uvuv-oriented ordering of Y\mathcal{Y} induced by SS is the linear ordering of the leaves in Y\mathcal{Y} obtained by traversing the side from uu to vv and listing the leaves in the order in which they are attached in NN along SS. The unoriented ordering of Y\mathcal{Y} induced by SS is this ordering considered up to reversal; equivalently, it is the vuvu-oriented ordering considered up to reversal. We call the edge side SS unoriented if there exists a reticulation-preserving automorphism of GG that maps uu to vv and vv to uu. An edge side is oriented if it is not unoriented, that is, every reticulation-preserving automorphism of GG maps uu to uu and vv to vv. Note that all edge sides that are directed edges are oriented, but edge sides that are undirected edges may be also oriented.

To illustrate these definitions, observe that the side A1A_1 of the generator G1G_1 in Figure 4a is unoriented, since there exists a reticulation-preserving automorphism that maps the two endpoints (in black) of that side to each other. On the other hand, the side A2A_2 of the generator G2G_2 in Figure 4a, as well as all sides of the generator GG from Figure 5a, are oriented. Observe that Y={x1,x2,x3}\mathcal{Y}=\{x_1,x_2,x_3\} is the set of leaves of the semi-directed network NN from Figure 5b that is attached to the edge side S=uvS=uv of the generator GG from Figure 5a. The uvuv-oriented ordering of Y\mathcal{Y} induced by SS is (x1,x2,x3)(x_1,x_2,x_3), with the unoriented ordering being this ordering up to reversal.

Figure 5. (a): A semi-directed level-4 generator GG with a labeled edge side S=uvS=uv. (b): A semi-directed network NN on {x1,…,x11}\{x_1,\ldots,x_{11}\} with GG as its generator. (c): The backbone NbN^{b} of NN. (d): The parallel contraction NcN^{c} of NN.

Proposition 3.8. Let N1N_1 and N2N_2 be two simple, kk-crucial, semi-directed networks on X\mathcal{X} with the same generator GG. Let Y⊆X\mathcal{Y}\subseteq\mathcal{X} be a set of leaves that all share the same edge side S=uvS=uv of GG in both N1N_1 and N2N_2.

  • (a) If S4(N1)≅S4(N2)S_4(N_1)\cong S_4(N_2), then the unoriented ordering of Y\mathcal{Y} induced by SS is the same in N1N_1 and N2N_2.

  • (b) If Sk+2(N1)≅Sk+2(N2)S_{k+2}(N_1)\cong S_{k+2}(N_2) and SS is oriented, then the uvuv-oriented ordering of Y\mathcal{Y} induced by SS is the same in N1N_1 and N2N_2.

  • (c) If Sk+1(N1)≅Sk+1(N2)S_{k+1}(N_1)\cong S_{k+1}(N_2) and SS is a parallel edge side, then the uvuv-oriented ordering of Y\mathcal{Y} induced by SS is the same in N1N_1 and N2N_2.

Proof. (a): Suppose S4(N1)≅S4(N2)S_4(N_1)\cong S_4(N_2). Observe that there is only one possible unoriented ordering of Y\mathcal{Y} if ∣Y∣≤2|\mathcal{Y}|\leq2, so we may assume ∣Y∣≥3|\mathcal{Y}|\geq3. Let Y′⊆Y\mathcal{Y}'\subseteq\mathcal{Y} be an arbitrary subset of Y\mathcal{Y} with ∣Y′∣=3|\mathcal{Y}'|=3. By Lemma 3.7, there is a leaf z∈X∖Yz\in\mathcal{X}\setminus\mathcal{Y} that is attached to a reticulation side of GG such that N1∣ZN_1|_{\mathcal{Z}}, with Z=Y′∪{z}\mathcal{Z}=\mathcal{Y}'\cup\{z\}, is simple. Since S4(N1)≅S4(N2)S_4(N_1)\cong S_4(N_2), N2∣ZN_2|_{\mathcal{Z}} is also simple. Let i∈{1,2}i\in\{1,2\}. Clearly, the leaves in Y′\mathcal{Y}' share a side in Ni∣ZN_i|_{\mathcal{Z}} because they shared a side in NiN_i. Moreover, the induced unoriented ordering of Y′\mathcal{Y}' in Ni∣ZN_i|_{\mathcal{Z}} is the same as the induced unoriented ordering of Y′\mathcal{Y}' in NiN_i. Because S4(N1)≅S4(N2)S_4(N_1)\cong S_4(N_2), these orderings are also the same across N1N_1 and N2N_2. The result follows from the fact that the unoriented ordering of Y\mathcal{Y} is fully determined by the unoriented orderings of all its size-3 subsets of leaves. (b): Suppose Sk+2(N1)≃Sk+2(N2)S_{k+2}(N_1) \simeq S_{k+2}(N_2) and that SS is oriented. The result is trivial if ∣Y∣=1|\mathcal{Y}| = 1, so we assume ∣Y∣≥2|\mathcal{Y}| \ge2. Let Y′⊆Y\mathcal{Y}' \subseteq\mathcal{Y} be an arbitrary subset of Y\mathcal{Y} with ∣Y′∣=2|\mathcal{Y}'| = 2 and let C⊆XC \subseteq\mathcal{X} be some smallest set of crucial leaves of N1N_1. By Proposition 3.4, N1N_1 and N2N_2 are leaf-side consistent, so CC is also a set of crucial leaves of N2N_2. Let Z=C∪Y′\mathcal{Z} = C \cup\mathcal{Y}'. Then, since NiN_i and Ni∣ZN_i|_{\mathcal{Z}} have the same generator, the uvuv-oriented ordering of Y′\mathcal{Y}' in Ni∣ZN_i|_{\mathcal{Z}} equals the uvuv-oriented ordering of Y′\mathcal{Y}' in NiN_i, for i∈{1,2}i \in\{1,2\}. Observe that ∣Z∣≤k+2|\mathcal{Z}| \le k + 2. So, by our assumption, N1∣Z≅N2∣ZN_1|_{\mathcal{Z}} \cong N_2|_{\mathcal{Z}} and thus these uvuv-oriented orderings of Y′\mathcal{Y}' also coincide across N1N_1 and N2N_2. The result follows by noting that the uvuv-oriented ordering of Y\mathcal{Y} is fully determined by the uvuv-oriented orderings of all its size-2 subsets of leaves.

(c): First note that parallel edge sides are directed and therefore oriented. Observe that in the proof of Part (b), we can pick a set of crucial leaves C⊆XC \subseteq\mathcal{X} that contains a leaf from Y′\mathcal{Y}' if SS is a parallel edge side. Then, ∣Z∣≤k+1|\mathcal{Z}| \le k + 1. The remainder of the proof is similar to the proof of Part (b).

Let NN be a simple, semi-directed network on X\mathcal{X} with cruciality k≥2k \ge2. The backbone NbN^b of NN is the subnetwork N∣Y∪ZN|_{\mathcal{Y}\cup\mathcal{Z}}, where Y⊆X\mathcal{Y} \subseteq\mathcal{X} is the set of leaves that are attached to parallel edge sides and Z⊆X\mathcal{Z} \subseteq\mathcal{X} the set of leaves attached to reticulation sides (see Figure 5c). Note that Y∪Z\mathcal{Y} \cup\mathcal{Z} forms a set of crucial leaves of NN and that ∣Y∪Z∣≥k≥2|\mathcal{Y} \cup\mathcal{Z}| \ge k \ge2, ensuring that the backbone is indeed a network on at least 2 leaves.

Lemma 3.9. Let N1N_1 and N2N_2 be two simple, kk-crucial, semi-directed networks on X\mathcal{X} with the same generator GG having parallel edge sides. If Sk+1(N1)≃Sk+1(N2)S_{k+1}(N_1) \simeq S_{k+1}(N_2), then N1N_1 and N2N_2 have isomorphic backbones.

Proof. Let NibN_i^b be the backbone of NiN_i, i∈{1,2}i \in\{1,2\}. Note that this backbone exists, since a network whose generator contains parallel edge sides has a cruciality of at least 2 (Observation 2.8). Because the leaf set of NibN_i^b is a crucial leaf set of NiN_i by construction, it follows from Lemma 3.2 that NibN_i^b also has GG as its generator. Next, note that a pair of parallel edge sides always forms its own side-equivalence class. Similarly, a reticulation side forms its own side-equivalence class. Since N1N_1 and N2N_2 are leaf-side consistent (Proposition 3.4), the two networks then share the same set of leaves on each pair of parallel edge sides and on each reticulation side. It follows that N1bN_1^b and N2bN_2^b have the same leaf sets and that they also share the same set of leaves on each pair of parallel edge sides and on each reticulation side. Moreover, for each pair of parallel edge sides, the allocation of leaves over the two sides is the same in N1N_1 and N2N_2 (and consequently, in N1bN_1^b and N2bN_2^b). Lastly, by Proposition 3.8c, the induced uvuv-oriented ordering of the leaves attached to a parallel edge side must be the same in N1N_1 and N2N_2 (and consequently, in N1bN_1^b and N2bN_2^b). It follows that N1b≅N2bN_1^b \cong N_2^b.

Let NN be a simple, semi-directed network on X\mathcal{X} with its generator containing a pair of parallel edge sides (S1,S2)(S_1,S_2). Let Y⊆X\mathcal{Y} \subseteq\mathcal{X} be the set of leaves attached to S1S_1 and S2S_2. To make the reduction of parallel sides canonical, we fix a total ordering of the leaves in X\mathcal{X} and take the representative leaf of Y\mathcal{Y} to be the smallest leaf in Y\mathcal{Y} according to this ordering. In what follows, such an ordering is implicitly assumed whenever working with representative leaves, and in examples we take it to be lexicographic. By reducing the pair of parallel edge sides (S1,S2)(S_1,S_2) (or reducing Y\mathcal{Y}) we mean the operation of contracting all edges in NN that correspond to S1S_1 and S2S_2 in its generator and then removing all leaves in Y\mathcal{Y}, except for the representative leaf. Thus, the whole cycle is replaced by a single vertex with the representative leaf of Y\mathcal{Y} adjacent to it. The parallel contraction NcN^c of NN is the semi-directed network obtained by reducing every pair of parallel edge sides. Note that the parallel contraction of NN is also a semi-directed network and that its generator has no parallel edge sides. See Figure 5d for an example.

Proposition 3.10. Let N1N_1 and N2N_2 be two simple, kk-crucial, semi-directed networks on X\mathcal{X} with the same generator GG having parallel edge sides. If N1N_1 and N2N_2 are leaf-side consistent and they have isomorphic backbones, then Sk(N1)≃Sk(N2)S_k(N_1) \simeq S_k(N_2) if and only if Sk(N1c)≃Sk(N2c)S_k(N_1^c) \simeq S_k(N_2^c), where NicN_i^c is the parallel contraction of NiN_i, i∈{1,2}i \in\{1,2\}.

Proof. Let Y⊆X\mathcal{Y} \subseteq\mathcal{X} be the set of leaves attached to parallel edge sides of N1N_1, and Z⊆X\mathcal{Z} \subseteq\mathcal{X} the set of leaves attached to reticulation sides of N1N_1. Observe that then Y\mathcal{Y} must also be the set of leaves attached to parallel edge sides of N2N_2 and Z\mathcal{Z} must be the set of leaves attached to reticulation sides of N2N_2, since N1N_1 and N2N_2 are leaf-side consistent. By Lemma 3.2 and since Y∪Z\mathcal{Y} \cup\mathcal{Z} is a set of crucial leaves of both N1N_1 and N2N_2, the backbones N1bN_1^b and N2bN_2^b of N1N_1 and N2N_2, respectively, have GG as their generator. By assumption, we also have N1b≅N2bN_1^b \cong N_2^b. It follows that N1N_1 and N2N_2 have the exact same allocation of leaves in Z\mathcal{Z} over their reticulation sides and the same allocation of leaves in Y\mathcal{Y} over their parallel edge sides. Moreover, since each parallel edge side S=uvS = uv of GG is directed and therefore oriented, it follows from N1b≅N2bN_1^b \cong N_2^b that the uvuv-oriented ordering induced by SS of the set of leaves attached to SS must be the same in both N1N_1 and N2N_2. This implies that any difference in kk-nets between N1N_1 and N2N_2 cannot be due to differences in the uvuv-oriented ordering of the attached leaves induced by a parallel edge side. Hence, such a difference in kk-nets between N1N_1 and N2N_2 must be witnessed by differences in the kk-nets of N1cN_1^c and N2cN_2^c. The equivalence stated in the proposition then readily follows.

Finally, we establish a result relating the level of a network to the levels of its subnetworks, the proof of which generalizes the proof of [18 Lemma 6.1]. We will apply this result in the next section to distinguish level-3 networks from higher-level networks based on quarnets (and hence quinnets).

Proposition 3.11. Let NN be a strictly level-kk semi-directed network and 3≤k′≤k3 \le k' \le k. Then there exists a k′′k''-net of NN, with k′′≤k′k'' \le k', that is not level-(k′−1)(k' - 1).

Proof. Let BB be a strictly level-kk blob of NN. Let NBN_B be the simple strictly level-kk semi-directed network obtained from NN by deleting all vertices that are not in BB and not adjacent to a vertex of BB. By Lemma 3.6, NBN_B has an excellent cycle C1C_1. Let x1x_1 be the leaf adjacent to the sink of C1C_1 and let j=1j = 1. Repeat the following while ∣{x1,…,xj}∣<k′|\{x_1, \ldots, x_j\}| < k' and U=⋃i=1jCiU = \bigcup_{i=1}^{j} C_i is not equal to the vertex set V(B)V(B) of BB. Let ee be an edge incident to UU (i.e., which has one endpoint in UU and one endpoint not in UU) that is not a cut-edge. By Lemma 3.6, NBN_B has an excellent cycle Cj+1C_{j+1} containing ee. Let xj+1x_{j+1} be the leaf adjacent to the sink of Cj+1C_{j+1}. Increase jj by 1 and repeat. This procedure terminates when U=⋃i=1jCi=V(B)U = \bigcup_{i=1}^{j} C_i = V(B) or ∣{x1,…,xj}∣=k′|\{x_1, \ldots, x_j\}| = k' or both. Let X′={x1,…,xj}X' = \{x_1, \ldots, x_j\}.

First suppose ∣X′∣=k′|X'| = k'. Then UU has k′k' sinks and each leaf of X′X' is adjacent to a sink of UU in NBN_B. Hence, the k′k'-net NB∣X′N_B|_{X'} has at least k′k' reticulations. Moreover, UU is biconnected by construction. It follows that NB∣X′N_B|_{X'} is simple and not level-(k′−1)(k' - 1). Let X′′X'' be a set of k′k' leaves of NN containing, for each leaf x∈X′x \in X', a leaf x′x' of NN that is reachable by a path from xx that is disjoint from BB. Then N∣X′′N|_{X''} is a k′k'-net of NN that is not level-(k′−1)(k' - 1).

Now suppose U=V(B)U = V(B) and ∣X′∣<k′|X'| < k'. Then UU contains exactly kk reticulations. Suppose NB∣X′N_B|_{X'} is strictly level ℓ<k′≤k\ell< k' \le k and note that ℓ≥∣X′∣\ell\ge|X'| since each leaf in X′X' is adjacent to a sink. Then BB contains g≤k−ℓg \le k - \ell good cycles that each have only two vertices with degree higher than 2 (so that these cycles are contracted when constructing NB∣X′N_B|_{X'}). Let X′′X'' contain all leaves of X′X' and, for max⁡{g,k′−ℓ}\max\{g, k' - \ell\} good cycles, a leaf incident to that cycle in NBN_B. Then NB∣X′′N_B|_{X''} is a k′′k''-net of NBN_B, with k′′≤k′k'' \le k', that is not level-(k′−1)(k' - 1). It then follows, by the same argument as the final argument in the previous case, that there exists a k′′k''-net of NN that is not level-(k′−1)(k' - 1).

:::

Encoding level-3 networks by quarnets and quinnets

In this section we prove that all level-3, semi-directed networks are encoded by their quinnets, and almost all of them by their quarnets (see Theorem 4.5). Recall that [18] already showed that level-2, semi-directed networks are encoded by their quarnets.

Proposition 4.1 (Thm. 6.2 [18]). Let N1N_1 and N2N_2 be two level-2, semi-directed networks on X\mathcal{X}. If S4(N1)≅S4(N2)\mathcal{S}_4(N_1) \cong\mathcal{S}_4(N_2), then N1N_1 and N2N_2 are isomorphic.

The proof of Theorem 4.5 is based on a case analysis made on the semi-directed level-3 generators and, as we shall see, the results in the previous section will permit us to greatly restrict the number of cases that we will need to consider. For the case analysis we first need the full list of semi-directed level-3 generators, shown in Figure 6. This list was obtained by Nipius [25], who semi-directed the 65 rooted level-3 generators listed in [10] that had been previously computed by Gambette, Berry, and Paul [11].2 That these mixed multi-graphs constitute all semi-directed level-3 generators was assumed, but not proven, in [25]. In light of Proposition 2.5 it follows that this assumption is justified.

Lemma 4.2. There are 17 semi-directed level-3 generators and they are all depicted in Figure 6.

We refer to the number assigned to each of the 17 semi-directed level-3 generators in Figure 6 as the type of the generator. Observe that generators 1 and 2 have cruciality 1, the generators 3–8 have cruciality 2, and the generators 9–17 have cruciality 3. In the proof of Theorem 4.5 we will only need to be concerned with the generators that do not contain parallel edge sides, that is, the ones of type 1, 2, 5, 6, 7, 8, 14, 15, 16, and 17. Using these observations, we now prove that if a simple, strictly level-3 network has no parallel edge sides that is not of type 14, then it is encoded by its quarnets. The generator of type 14 will be treated separately in Lemma 4.4.

Lemma 4.3. Let N1N_1 and N2N_2 be two simple, strictly level-3, semi-directed networks on XX having the same generator GG of type 1, 2, 5, 6, 7, 8, 15, 16, or 17. If S4(N1)≅S4(N2)S_4(N_1) \cong S_4(N_2), then N1N_1 and N2N_2 are isomorphic.

Proof. Let kk be the cruciality of GG and note that k≤3k \le3 by Observation 2.7. By Proposition 3.4, N1N_1 and N2N_2 are leaf-side consistent. We consider four cases, depending on the type of GG. Recall that in all cases, GG has no parallel edge sides.

Case 1: GG is of type 1, 5, 6, or 7. Observe that the following hold for each of these generator types: (i) k≤2k \le2; (ii) each side of GG forms its own equivalence class; (iii) each edge side of GG is oriented. Since N1N_1 and N2N_2 are leaf-side consistent, we may assume by (ii) that each side of GG has the same set of leaves attached to it in both N1N_1 and N2N_2. Combining Proposition 3.8b with (i) and (iii), it follows that each edge side S=uvS=uv of GG induces the same uvuv-oriented ordering of the set of leaves attached to it in both N1N_1 and N2N_2. Thus, N1≅N2N_1 \cong N_2.

Case 2: GG is of type 2 or 8. Observe that k≤2k \le2 (in particular, k=1k=1 if GG is of type 2, and k=2k=2 if GG is of type 8). Let SS be the topmost reticulation side of GG according to the planar representation in Figure 6 (for type 2, this is the sole reticulation side). Since N1N_1 and N2N_2 are leaf-side consistent, they both have the same leaf x∈Xx \in X attached to SS (Insight 2.1). Denote by S′=urS'=ur and S′′=vrS''=vr the two oriented edge sides of GG incident to the reticulation side SS. Let Y′Y' and Y′′Y'' be the sets of leaves that are attached to S′S' and S′′S'', respectively, in N1N_1. By Proposition 3.5, Y′Y' and Y′′Y'' are also the sets of leaves attached to S′S' and S′′S'', respectively, in N2N_2 (Insight 2.2). By Proposition 3.8b, the urur-oriented ordering of Y′Y' induced by S′S' (respectively, the vrvr-oriented ordering of Y′′Y'' induced by S′′S'') is the same in N1N_1 and N2N_2 (Insight 2.3). Lastly, for i=1,2i=1,2, put Ni′:=Ni∣X∖{x}N'_i:=N_i|_{X\setminus\{x\}}. Note that Ni′N'_i is a level-2, semi-directed network. By Proposition 4.1, N1′≅N2′N'_1 \cong N'_2 (Insight 2.4). Together, Insights 2.1–2.4 show that N1≅N2N_1 \cong N_2.

Case 3: GG is of type 15. Observe that k=3k=3. Let S1S_1, S2S_2 and S3S_3 denote the reticulation sides of GG, ordered from top to bottom and left to right according to the planar representation in Figure 6. Let x,y,z∈Xx,y,z \in X be the leaves attached to S1S_1, S2S_2, and S3S_3, respectively, in N1N_1. Since N1N_1 and N2N_2 are leaf-side consistent, x,y,zx,y,z are also attached to S1,S2,S3S_1,S_2,S_3, respectively, in N2N_2 (Insight 3.1). For i∈{1,2}i \in\{1,2\}, put Ni′:=Ni∣X∖{x}N'_i:=N_i|_{X\setminus\{x\}}. Note that Ni′N'_i is a level-2, semi-directed network. By Proposition 4.1, N1′≅N2′N'_1 \cong N'_2 (Insight 3.2). Let S′=urS'=ur and S′′=vrS''=vr be the two oriented edge sides of GG incident to S1S_1. By Insights 3.1 and 3.2, any potential non-isomorphism between N1N_1 and N2N_2 can only arise from a difference in the urur-oriented or vrvr-oriented orderings induced by S′S' or S′′S'', respectively, of the leaves attached to them. Now put Ni′′:=Ni∣X∖{z}N''_i:=N_i|_{X\setminus\{z\}}, for i∈{1,2}i \in\{1,2\}. Note that the oriented edge sides S′S', S′′S'' correspond to oriented edge sides in Ni′′N''_i. By Proposition 4.1 and since N1′′N''_1 and N2′′N''_2 are level-2, semi-directed networks, N1′′≅N2′′N''_1 \cong N''_2. So, the oriented orderings induced by these two sides of the leaves attached to them coincide in N1′′N''_1 and N2′′N''_2, and hence also in N1N_1 and N2N_2. It follows that N1≅N2N_1 \cong N_2.

Case 4: GG is of type 16 or 17. Observe that (i) k=3k=3; (ii) each side of GG forms its own equivalence class; (iii) each edge side is oriented. Since the two networks are leaf-side consistent, each side SS has the same set of leaves YS\mathcal{Y}_S attached to it in both N1N_1 and N2N_2. So, by (ii), any potential non-isomorphism between N1N_1 and N2N_2 can only arise from some edge side SS (which is oriented by (iii)) having a different induced oriented ordering of YS\mathcal{Y}_S in N1N_1 and N2N_2. Note that for each such edge side SS, there is one leaf $z attached to a reticulation side in both N1N_1 and N2N_2, such that the leaves in YSY_S are still attached to an oriented side S′S' in N1′:=N1∣X∖{z}N'_1 := N_1|X\setminus\{z\} and N2′:=N2∣X∖{z}N'_2 := N_2|X\setminus\{z\}. Since N1′N'_1 and N2′N'_2 are level-2, semi-directed networks, we get N1′≅N2′N'_1 \cong N'_2 by Proposition 4.1. Thus, the oriented orderings of YSY_S induced by S′S' coincide in N1′N'_1 and N2′N'_2. Hence, the oriented orderings of YSY_S induced by SS also coincide in N1N_1 and N2N_2. Therefore, N1≅N2N_1 \cong N_2.

We now focus on the generator of type 14. We refer to the side of generator 14 labeled by S′S' in Figure 6 as its top side. By reversing the top side of a simple network NN with a generator of type 14, we mean reversing the order in which the leaves are attached to its top side. In addition, we say that two simple networks that both have a type 14 generator are isomorphic modulo reversing the top side if they are isomorphic or they become isomorphic after reversing the top side for one of the networks.

The type 14 generator is the one problematic case. Figure 7 exhibits, for every m≥2m \ge2, a pair of non-isomorphic, simple, level-3 networks with a type 14 generator that induce exactly the same set of quarnets; they are isomorphic modulo reversing the top side, but not isomorphic. The special case m=2m=2 is Figure 2 of [18]. The following lemma shows that this is the only obstruction: quarnets determine two simple type 14 networks up to reversing the top side, while quinnets determine them completely.

Lemma 4.4. Let N1N_1 and N2N_2 be two simple, strictly level-3, semi-directed networks on XX having the same generator GG of type 14.

(a) If S4(N1)≅S4(N2)S_4(N_1) \cong S_4(N_2), then N1N_1 and N2N_2 are isomorphic modulo reversing the top side.

(b) If S5(N1)≅S5(N2)S_5(N_1) \cong S_5(N_2), then N1N_1 and N2N_2 are isomorphic.

Proof. As observed at the beginning of this section, the cruciality of GG is 3. Moreover, each of its sides forms its own side-equivalence class, and each edge side is oriented.

(a) Suppose that S4(N1)≅S4(N2)S_4(N_1) \cong S_4(N_2). By Proposition 3.4, N1N_1 and N2N_2 are leaf-side consistent—and thus each side of GG has the same leaves attached to it in both N1N_1 and N2N_2. By Proposition 3.8a, the unoriented orderings induced by each edge side of GG of the leaves attached to it are the same in N1N_1 and N2N_2. In particular, this means that the unoriented ordering induced by the top side of GG of the leaves attached to it is the same in N1N_1 and N2N_2. Let SS be an edge side that is not the top side of GG and let YSY_S be the set of leaves attached to SS in N1N_1 and N2N_2. Observe that SS is oriented and that there is a leaf z∈Xz \in X attached to a reticulation side of GG such that the leaves in YSY_S are still attached to an oriented side S′S' in N1′:=N1∣X∖{z}N'_1 := N_1|X\setminus\{z\} and N2′:=N2∣X∖{z}N'_2 := N_2|X\setminus\{z\}. Since N1′N'_1 and N2′N'_2 are level-2, semi-directed networks, we have N1′≅N2′N'_1 \cong N'_2 by Proposition 4.1. Thus, the oriented orderings of YSY_S induced by S′S' coincide in N1′N'_1 and N2′N'_2. Hence, the oriented orderings of YSY_S induced by SS also coincide in N1N_1 and N2N_2. It follows that N1N_1 and N2N_2 are isomorphic modulo reversing the top side. (b) Suppose that S5(N1)≅S5(N2)S_5(N_1) \cong S_5(N_2). This implies that S4(N1)≅S4(N2)S_4(N_1) \cong S_4(N_2), so N1N_1 and N2N_2 are isomorphic modulo reversing the top side. By Proposition 3.8b, the induced oriented orderings of the leaves attached to the top side of GG are also the same for N1N_1 and N2N_2. Hence, N1≅N2N_1 \cong N_2.

Putting everything together, we now prove the main result (Theorem 4.5), which concerns networks that need not be simple. To this end, we first naturally extend the notion of reversing the top side of a type 14 generator to the blobs of a non-simple network.

Let BB be an mm-blob (m≥3m \ge3) of a level-3, semi-directed network NN on X\mathcal{X}. Removing BB partitions X\mathcal{X} into the leaf sets X1,…,XmX_1,\ldots,X_m of the remaining components; picking one leaf xi∈Xix_i \in X_i from each yields a simple network NB:=N∣{x1,…,xm}N_B := N|_{\{x_1,\ldots,x_m\}}, whose generator GBG_B does not depend on this choice. We call BB a type 14 blob if GBG_B is the generator of type 14. Along the edges of BB corresponding to the top side of GBG_B hang pendant subgraphs of NN in a linear order, one for each leaf attached to the top side in the network NBN_B. By reversing the top side of a type 14 blob we mean reversing the order of these pendant subgraphs, leaving the rest of NN unchanged. Note that this is a slight generalization of the operation illustrated in Figure 7, where each leaf on the top side may now stand for a larger pendant part of the network. Finally, two level-3 networks are isomorphic modulo reversing the top sides of type 14 blobs if one becomes isomorphic to the other after reversing the top side of some (possibly empty) subset of its type 14 blobs.

Theorem 4.5. Let L3\mathcal{L}_3 be the class of binary, level-3, semi-directed networks. Then,

(a) L3\mathcal{L}_3 is encoded by quarnets, modulo reversing the top side of the type 14 blobs; and

(b) L3\mathcal{L}_3 is encoded by quinnets.

Proof. For (a), first observe that reversing the top side of a type 14 blob leaves the quarnets unchanged. This is easily verified from Figure 7 for a simple network with a single type 14 blob, and the general case follows.

Also observe that, by Proposition 3.11, a network not in L3\mathcal{L}_3 cannot have the same quarnets (or quinnets) as a network in L3\mathcal{L}_3. Hence, to show the claimed encoding results, it suffices to consider two semi-directed networks N1N_1 and N2N_2 on X\mathcal{X} from the class L3\mathcal{L}_3.

(a) Suppose that S4(N1)≅S4(N2)S_4(N_1) \cong S_4(N_2). Let B1B_1 be an arbitrary blob of N1N_1. As above, observe that the removal of B1B_1 induces a partition {X1,…,Xm}\{X_1,\ldots,X_m\} of the leaf set X\mathcal{X} (with m≥3m \ge3, X=⋃i=1mXi\mathcal{X} = \bigcup_{i=1}^m X_i, Xi⊆XX_i \subseteq\mathcal{X} and Xi∩Xj=∅X_i \cap X_j = \varnothing, $1 \le i \ne j \le m$). By Proposition 3.1, N1N_1 and N2N_2 have isomorphic trees-of-blobs, so there also exists a corresponding blob B2B_2 of N2N_2 that induces the same partition of X\mathcal{X}. Pick a set of leaves {x1,…,xm}\{x_1,\ldots,x_m\} such that xi∈Xix_i \in X_i for each 1≤i≤m1 \le i \le m. Put N1′:=N1∣{x1,…,xm}N'_1 := N_1|_{\{x_1,\ldots,x_m\}} and N2′:=N2∣{x1,…,xm}N'_2 := N_2|_{\{x_1,\ldots,x_m\}}. Since we chose an arbitrary blob B1B_1 of $N_1, it now suffices to show that N1′N'_1 and N2′N'_2 are isomorphic modulo reversing the top side of the type 14 blobs.

Observe that N1′N'_1 and N2′N'_2 are simple and that their cruciality is at most 3 (Observation 2.7). By Proposition 3.3, they have the same generator GG. By Proposition 3.4, N1′N'_1 and N2′N'_2 are leaf-side consistent. By combining Lemma 3.9 and Proposition 3.10, we may assume that N1′N'_1 and N2′N'_2 are their own parallel contraction or, equivalently, that GG contains no parallel edge sides. If N1′N'_1 and N2′N'_2 are level-2, the result follows from Proposition 4.1, so we may assume that the two networks are strictly level-3. If GG is of type 1, 2, 5, 6, 7, 8, 15, 16, or 17, N1′N'_1 and N2′N'_2 are isomorphic by Lemma 4.3. If GG is of type 14, the two networks are isomorphic modulo reversing the top side by Lemma 4.4a. This proves Part (a).

(b) Suppose that S5(N1)≅S5(N2)S_5(N_1) \cong S_5(N_2), which implies S4(N1)≅S4(N2)S_4(N_1) \cong S_4(N_2). The proof is analogous to the proof of Part (a) but using Lemma 4.4b instead of Lemma 4.4a when GG is of type 14.

Remark 4.6. If a network has fewer than four (respectively, five) leaves, then it possesses no quarnets (respectively, quinnets). Recall from the definition of encoding in § 2 that, whenever a network has fewer than kk leaves, encoding by kk-nets is understood to mean encoding by its nn-nets, where nn is the number of leaves. Thus, in Theorem 4.5, a network in L3\mathcal{L}_3 with fewer than five leaves is understood to be encoded by its unique subnetworks on all of its leaves.

Discussion

We have shown that the class of binary, level-3, semi-directed networks is encoded by quinnets, and that its quarnets determine such a network exactly up to reversing the top side of its type 14 generators. In some definitions of semi-directed networks and their subnetworks, parallel edges and/or 2-blobs are kept intact (see, e.g., [2]). Without formalizing this setting, we note that our approach extends naturally to this framework and can be used to prove similar results in that framework too. For the encoding and reconstruction problems we consider, maintaining parallel edges and 2-blobs actually simplifies the task of determining the generator of a blob. In particular, a leaf is no longer required to be attached to a side consisting of parallel edges in order to preserve those edges. Similarly, a single subnetwork can encode information about many of the blobs in the remainder of the network, since the 2-blobs are not suppressed. Consequently, subnetworks carry strictly more information in this scenario.

It is also of interest to further formalize the connection to the rooted setting. Rooted level-2 networks are encoded by their trinets (3-nets) [21] and rooted level-3 networks by their quarnets [26], whereas level-2 and level-3 semi-directed networks need quarnets [18] and quinnets (Theorem 4.5), respectively. Hence, it appears that semi-directing costs one leaf when considering subnetwork encodings. A natural attempt at a formal reduction is via an outgroup taxon: a rooted network on X\mathcal{X} can be represented by a semi-directed network on X∪{o}\mathcal{X} \cup\{o\}, with the additional leaf oo attached at the root. However, neither direction transfers immediately, since the kk-nets of such a semi-directed network include subnetworks without oo, which carry no information about the root location, while conversely a semi-directed network need not have a leaf attached to its ‘source component’ [16] that could play the role of oo in a reduction. Whether some reduction can nonetheless be made to work, or whether the two hierarchies are genuinely different would be interesting to better understand.

Another direction is more algorithmic. For level-1, semi-directed networks, [9] showed that an nn-leaved network can be reconstructed using only O(nlog⁡n)O(n \log n) quarnet queries, far fewer than the Θ(n4)\Theta(n^4) quarnets available. Nothing comparable is known beyond level-1, so it would already be interesting to know whether a level-2 network can be built from its quarnets in polynomial time, and, in view of Theorem 4.5, whether the same can be done for a level-3 network from its quinnets, and how many queries are needed in either case.

Perhaps the most natural open question is whether encoding results of the kind proved here extend beyond level-3. The results of § 3 hold for networks of arbitrary level, and it is only the final step—for which we rely on a case analysis over the level-3 generators—that is specific to level-3. Since the number of level-kk generators grows rapidly with kk [10, 11], an argument along these lines is unlikely to settle the question in general, and a different approach appears to be needed.

Finally, we note that encoding is not the only obstacle to inferring a level-3 network in practice. Whether the kk-nets themselves can be distinguished from one another using data is a separate question of statistical identifiability, an active area of research. This topic is quite well understood for level-1 networks but far less so for higher-level networks. The results available beyond level-1 are restricted to particular classes of networks [2, 7, 14], none of which cover level-3 networks in general. Almost all of this work, moreover, relies on four-taxon summaries, with the corresponding theory for five-taxon summaries only beginning to be developed [6].

Data availability statement The independent verification of the level-3 generator computations of [11] and [25] in § 4 has been implemented in the open-source Python package PhyloZoo [13].

Funding NH and LvI were supported by grant OCENW.M.21.306 of the Dutch Research Council (NWO). KTH and VM thank the TU Delft Discrete Mathematics and Optimization group for hosting them during visits where some of the work was carried out, and the aforementioned NWO grant for helping to support their visits.

References

References

  1. [1]E. S. Allman, H. Baños, J. D. Mitchell, and J. A. Rhodes. “The tree of blobs of a species network: identifiability under the coalescent”. In: Journal of Mathematical Biology 86.1 (2023), p. 10. DOI: 10.1007/s00285-022-01838-9.DOI
  2. [2]E. S. Allman, C. Ané, H. Baños, and J. A. Rhodes. “Beyond level-1: identifiability of a class of galled tree-child networks”. In: Bulletin of Mathematical Biology 87.11 (2025). DOI: 10.1007/s11538-025-01545-8.DOI
  3. [3]E. S. Allman, H. Baños, J. A. Rhodes, and K. Wicke. “NANUQ+: A divide-and-conquer approach to network estimation”. In: Algorithms for Molecular Biology 20.1 (2025). DOI: 10.1186/s13015-025-00274-w.DOI
  4. [4]T. Barton, E. Gross, C. Long, and J. Rusinko. “Statistical learning with phylogenetic network invariants”. In: Bulletin of the Society of Systematic Biologists 4.1 (2026). DOI: 10.18061/bssb.5822.
  5. [5]H. Colonius and H. H. Schulze. “Tree structures for proximity data”. In: British Journal of Mathematical and Statistical Psychology 34.2 (1981), pp. 167–180. DOI: 10.1111/j.2044-8317.1981.tb00626.x.DOI
  6. [6]J. Cummings, M. Curiel, B. Currie, B. Kagy, U. Ranasinghe, and J. A. Rhodes. Identifiability of phylogenetic networks and quintet concordance factors. 2026. arXiv: 2608.03544.arxiv.org/abs/2608.03544
  7. [7]A. K. Englander, M. Frohn, E. Gross, N. Holtgrewe, L. van Iersel, M. Jones, and S. Sullivant. Identifiability of phylogenetic level-2 networks under the Jukes-Cantor model. 2025. bioRxiv: 10.1101/2025.04.18.649493.DOI
  8. [8]J. Fischer and D. H. Huson. “New common ancestor problems in trees and directed acyclic graphs”. In: Information Processing Letters 110.8-9 (2010), pp. 331–335. DOI: 10.1016/j.ipl.2010.02.014.DOI
  9. [9]M. Frohn, N. Holtgrewe, L. van Iersel, M. Jones, and S. Kelk. “Reconstructing semi-directed level-1 networks using few quartets”. In: Journal of Computer and System Sciences 152 (2025), p. 103655. DOI: 10.1016/j.jcss.2025.103655.DOI
  10. [10]P. Gambette. Generators – building level-k generators. https://ligm.univ-eiffel.fr/~gambette/ProgGenerators.php. Accessed: 2026-02-02.
  11. [11]P. Gambette, V. Berry, and C. Paul. “The structure of level-k phylogenetic networks”. In: Annual Symposium on Combinatorial Pattern Matching. Springer. 2009, pp. 289–300. DOI: 10.1007/978-3-642-02441-2_26.DOI
  12. [12]E. Gross and C. Long. “Distinguishing phylogenetic networks”. In: SIAM Journal on Applied Algebra and Geometry 2.1 (2018), pp. 72–93. DOI: 10.1137/17m1134238.DOI
  13. [13]N. Holtgrewe. PhyloZoo: a unified framework for phylogenetic network analysis in Python. 2026. bioRxiv: 10.1101/2026.06.09.731120.
  14. [14]N. Holtgrewe, E. S. Allman, H. Baños, L. van Iersel, V. Moulton, J. A. Rhodes, and K. Wicke. “Distinguishing phylogenetic level-2 networks with quartets and inter-taxon quartet distances”. In: Bulletin of Mathematical Biology 87.12 (2025). DOI: 10.1007/s11538-025-01549-4.
  15. [15]N. Holtgrewe, K. T. Huber, L. van Iersel, M. Jones, S. Martin, and V. Moulton. “Squirrel: reconstructing semi-directed phylogenetic level-1 networks from four-Leaved networks or sequence alignments”. In: Molecular Biology and Evolution 42.4 (2025). DOI: 10.1093/molbev/msaf067.
  16. [16]N. Holtgrewe, K. T. Huber, L. van Iersel, M. Jones, and V. Moulton. “Characterizing semi-directed phylogenetic networks and their multi-rootable variants”. In: Theory in Biosciences 145.1 (2026), p. 4. DOI: 10.1007/s12064-025-00453-8.
  17. [17]K. T. Huber and V. Moulton. “Encoding and constructing 1-nested phylogenetic networks with trinets”. In: Algorithmica 66.3 (2013), pp. 714–738. DOI: 10.1007/s00453-012-9659-x.DOI
  18. [18]K. T. Huber, L. van Iersel, M. Jones, V. Moulton, and L. Veenema-Nipius. “When are quarnets sufficient to reconstruct semi-directed phylogenetic networks?” In: Bulletin of Mathematical Biology 87.10 (2025), p. 136. DOI: 10.1007/s11538-025-01510-5.DOI
  19. [19]K. T. Huber, L. van Iersel, S. Kelk, and R. Suchecki. “A practical algorithm for reconstructing level-1 phylogenetic networks”. In: IEEE/ACM Transactions on Computational Biology and Bioinformatics 8.3 (2011), pp. 635–649. DOI: 10.1109/TCBB.2010.17.DOI
  20. [20]D. H. Huson, R. Rupp, and C. Scornavacca. Phylogenetic networks: concepts, algorithms and applications. Cambridge University Press, 2010. DOI: 10.1017/CBO9780511974076.DOI
  21. [21]L. van Iersel and V. Moulton. “Trinets encode tree-child and level-2 phylogenetic networks”. In: Journal of Mathematical Biology 68.7 (2014). DOI: 10.1007/s00285-013-0683-5.DOI
  22. [22]R. Keuler, J. Jensen, A. Barcena-Peña, F. Grewe, H. Thorsten Lumbsch, J.-P. Huang, and S. D. Leavitt. “Interpreting phylogenetic conflict: hybridization in the most speciose genus of lichen-forming fungi”. In: Molecular Phylogenetics and Evolution 174 (2022), p. 107543. DOI: https://doi.org/10.1016/j.ympev.2022.107543.
  23. [23]S. Kong, J. C. Pons, L. Kubatko, and K. Wicke. “Classes of explicit phylogenetic networks and their biological and mathematical significance”. In: Journal of Mathematical Biology 84.6 (2022). DOI: 10.1007/s00285-022-01746-y.DOI
  24. [24]S. Martin, N. Holtgrewe, V. Moulton, and R. M. Leggett. “Algebraic invariants for inferring 4-leaf semi-directed phylogenetic networks”. In: Systematic Biology 75.4 (2026), pp. 657–672. DOI: 10.1093/sysbio/syaf071.DOI
  25. [25]L. Nipius. “Encoding undirected and semi-directed binary phylogenetic networks by quarnets”. Master thesis. Delft University of Technology, 2022. URL: https://repository.tudelft.nl/record/uuid:eab4293-6349-4d6e-ab53-94b781fc65e1.
  26. [26]L. Nipius. “Rooted binary level-3 phylogenetic networks are encoded by quarnets”. Bachelor thesis. Delft University of Technology, 2020. URL: https://repository.tudelft.nl/record/uuid:a9c5a8d4-bc8b-4d15-bdbb-3ed35a9fb75d.
  27. [27]J. Oldman, T. Wu, L. van Iersel, and V. Moulton. “TriLoNet: piecing together small networks to reconstruct reticulate evolutionary histories”. In: Molecular Biology and Evolution 33.8 (2016), pp. 2151–2162. DOI: 10.1093/molbev/msw068.DOI
  28. [28]C. Semple and G. Toft. “Trinets encode orchard phylogenetic networks”. In: Journal of Mathematical Biology 83.3 (2021). DOI: 10.1007/s00285-021-01654-7.DOI
  29. [29]C. Solís-Lemus. “A general overview view on phylogenetic networks”. In: Systematic Biology (2026), svag045. DOI: 10.1093/sysbio/syag045.
  30. [30]C. Solís-Lemus and C. Ané. “Inferring phylogenetic networks with maximum pseudolikelihood under incomplete lineage sorting”. In: PLOS Genetics 12.3 (2016), e1005896. DOI: 10.1371/journal.pgen.1005896.
  31. [31]M. Steel. Phylogeny: discrete and random processes in evolution. Vol. 89. CBMS-NSF Regional Conference Series in Applied Mathematics. Philadelphia, PA: Society for Industrial and Applied Mathematics, 2016. DOI: 10.1137/1.9781611974485.DOI
  32. [32]J. Willson and T. Warnow. “CAMUS: scalable phylogenetic network estimation”. In: Bioinformatics 42.Supplement_1 (2026). DOI: 10.1093/bioinformatics/btag245.DOI
  33. [33]J. Xu and C. Ané. “Identifiability of local and global features of phylogenetic networks from average distances”. In: Journal of Mathematical Biology 86.1 (2022). DOI: 10.1007/s00285-022-01847-8.DOI

Paper details

vlnc:W_q58jpctz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Agricultural and Biological Sciences

Not recorded for this paper

View statement
Looking for related papers…
Contents