Manuscript Offprint
arXiv:2611.09533Pangenome Peeling: Decomposing Weighted Adjacencies into Path-Forest Genomes
DECOMPOSING WEIGHTED ADJACENCIES INTO PATH-FOREST GENOMES
Alitzel López Sánchez
Department of Mathematics and Statistics
University of Ottawa
Ottawa, ON, Canada
Jiazhen Leng
Department of Mathematics and Statistics
University of Ottawa
Ottawa, ON, Canada
Natasha Ivanova
Department of Mathematics and Statistics
University of Ottawa
Ottawa, ON, Canada
Lingling Jin
Department of Computer Science
University of Saskatchewan
Saskatoon, SK, Canada
David Sankoff
Department of Mathematics and Statistics
University of Ottawa
Ottawa, ON, Canada
ABSTRACT
One aspect of pangenome analysis that has received little attention is the recovery of the individual genomes that gave rise to a pangenome graph. While substantial effort has focused on constructing pangenomes from collections of genomes, the inverse problem remains largely unexplored: given a pangenome represented as a set of weighted adjacencies, can we reconstruct the constituent linear genomes that underlie it?
Thus, we introduce the pangenome peeling problem, which seeks to decompose a weighted adjacency graph into a collection of linear genomes whose combined adjacencies reproduce the observed edge weights. This problem is particularly relevant when considering ancestral pangenomes, where the graph structure may be known or inferred, but the underlying genomes are not.
As a first step toward addressing this problem, we formally define pangenome peeling and derive a lower bound on the minimum number of genomes required to explain a given weighted adjacency graph. We then present two reconstruction methods: one based on the sequential addition of edges and a second based on extracting maximum-spanning-tree structures. Both methods produce genome collections that exactly explain the input adjacency data.
To evaluate the recovered sets of genomes, we compare them to the set of input genomes using a maximum-weight matching framework based on the double-cut-and-join distance with indels. Here, the maximum-spanning-tree approach is superior, producing sets of constituent genomes close to the simulations while the sequential addition of edges approach yields constituent genomes increasingly divergent from the input as genome sizes increase.
Keywords Pangenomics · Graph Decomposition · Combinatorial Optimization · Comparative Genomics
1 Introduction
The widespread adoption of long-read sequencing technologies has led to an unprecedented increase in the number of complete genomes available across diverse taxa. As genomic collections continue to expand, it has become elucidated
A PREPRINT
that a single reference genome cannot capture the full extent of genetic variation within a species. To address this limitation, comparative genomic studies increasingly rely on pangenomes, which provide a unified representation of the genetic content observed across multiple individuals [1, 2]. Pangenomes have emerged as a versatile framework for studying sequence diversity, genome evolution, and population-level variation across a wide range of organisms [3].
The utility of pangenomic approaches has been demonstrated across numerous biological systems. Early studies revealed substantial genetic variation that remained invisible under a single-reference paradigm. Notably, the soybean pangenome uncovered genes associated with disease resistance, flowering time, and seed composition that were absent from the cultivated reference genome [4]. Since then, pangenome analyses have become central to studies of adaptation, biodiversity, and crop improvement [5].
Despite these advances, most computational research on pangenomes has focused on the forward problem: constructing a pangenome representation from a collection of genomes. In contrast, little attention has been devoted to the inverse problem. Given a pangenome representation, what information can be recovered about the genomes that underlie it? Addressing this question is essential for understanding the expressive power of pangenome models, the information they preserve, and the ambiguities they inevitably contain.
Recovering constituent genomes from aggregate pangenomic information may prove valuable in settings where complete sampling is impossible. For many lineages, extant genomes provide only a partial view of the past genetic diversity, and extinct or unsampled lineages may have contributed substantially to the observed genomic landscape. This perspective has been useful in other areas of comparative genomics, including studies of horizontal gene transfer involving extinct and unsampled taxa [6]. Recovering constituent genomes from a pangenome may provide insight into genomic structures that are no longer directly observable.
Our contributions. In this work, we introduce the Pangenome Peeling Problem, a novel inverse formulation of pangenome reconstruction. We consider a weighted adjacency graph in which vertices represent genes and edge weights record the multiplicity of observed adjacencies across a collection of genomes. While such graphs are commonly used as pangenome representations, they aggregate information from multiple genomes and therefore obscure the identity of their constituent genomes. We study the problem of recovering a collection of genomes whose combined adjacency content exactly reproduces a given weighted adjacency graph.
We formally define this reconstruction problem and derive an approximate lower bound on the minimum number of constituent genomes required to explain a given instance. We further propose two algorithms based on sequential edge addition (SEQ) and maximum-spanning-tree path decompositions (MST). Using simulated benchmarks, we evaluate the inferred genome collections with respect to pangenome size, core set recovery, and structural similarity measured by the DCJ-indel distance. Our results revealing the superiority of the MST approach.
The open-source implementation of the proposed algorithms, the pangenome simulator, and all scripts used in the experimental evaluation are available at https://github.com/AliLopSan/pangesim.
2.1 Pangenomes and Weighted Adjacency Graphs
Let denote a set of genomic markers. Throughout this work, markers (or genes) represent homologous sequence segments and are treated as unique identifiers. Following the genome rearrangement literature, we model a genome as a collection of linear chromosomes and therefore represent it as a path forest with an additional requirement. More formally, a genome is a graph where such that every vertex has a degree at most two and every connected component is a non-trivial path. We refer to as the size of a genome.
A pangenome is a collection of genomes where . We refer to as the size of the pangenome. The core of is the set of markers present in every genome whereas the shell of is the set of markers that are present in at least one genome but not in all of them. For a pangenome , the endogenous weight of an adjacency is the number of constituent genomes of which contain as an edge,
A PREPRINT

Figure 1: Given the weighted adjacency graph . Pangenomes and are alternative peelings of . The coloured nodes represent elements of their respective core sets.
that is . Whenever the pangenome is clear from the context, we simply write .
Several graph-based pangenome representations have been proposed, including sequence graphs, genome graphs and variation graphs [7, 8]. Depending on the representation, vertices may correspond to k-mers, genomic segments or other sequence units, while edges encode relationships such as adjacency, concatenation or variation. Paths in these graphs represent haplotypes, contigs or genomic annotations [9]. Although these models differ in their representation of genomic variation, they all encode adjacency relationships between genomic segments.
In this work we abstract this information into a weighted adjacency graph where is the multiplicity function which records how often an adjacency was seen in the source data.
We consider the reverse problem of reconstructing a collection of linear genomes from the aggregate adjacency information. Given a weighted adjacency graph , we seek a pangenome whose endogenous edge weights reproduce the observed multiplicities. We say that such a pangenome explains .
The Pangenome Peeling problem.
Input. A weighted simple graph , where is the multiplicity function which records how often an adjacency was seen in the source data.
Output. A pangenome that explains .
Note that a weighted adjacency graph may admit multiple distinct explanations. An illustrative example is shown on Figure 1. Two pangenomes may induce exactly the same adjacency multiplicities while differing substantially in their constituent genomes and core marker sets.
Relationship to classical graph problems. The pangenome peeling problem shares similarities with several well-studied graph decomposition problems. Recall that a path cover of a graph is a collection of pairwise vertex-disjoint paths whose union contains every vertex of . In the minimum path cover problem one seeks a path cover of minimum cardinality. Variants requiring all paths to be non-trivial have also been studied [10]. At first glance, constituent genomes resemble the paths appearing in a non-trivial path cover, since every genome is itself a path forest. However, an important distinction is that pangenome peeling operates on weighted adjacencies and allows markers to occur in multiple constituent genomes. Consequently, the genomes explaining a weighted adjacency graph are not required to be vertex-disjoint. The problem is also related to factor problems in graph theory. Given constants and , an -factor of a graph is a spanning subgraph in which every vertex has degree between and . In particular, a -factor corresponds to a spanning collection of non-trivial paths and cycles. While polynomial-time algorithms are known for finding such structures [10], these formulations do not account for edge multiplicities or overlapping path forests. Therefore, existing path-cover and factor techniques cannot be applied directly to the pangenome peeling problem.
3 Bounds on the Number of Constituent Genomes
Before attempting to reconstruct constituent genomes, it is useful to determine how many genomes may be required to explain a weighted adjacency graph. This quantity is generally unknown and depends on how adjacency multiplicities
A PREPRINT
can be distributed across path forests. We therefore begin by deriving lower and upper bounds on the size of any pangenome that explains a given weighted adjacency graph. Given an adjacency , its residual multiplicity is the number of occurrences of that remain to be assigned to constituent genomes during reconstruction. The following simple construction provides an immediate upper bound:
Lemma 1. (Upper bounds) Let be a weighted adjacency graph. Then there exists a pangenome explaining with at most genomes.
To see this, create one genome consisting of the single adjacency for every occurrence counted by . The resulting collection explains every multiplicity exactly.
Obtaining a lower bound, however, is considerably less straightforward. Before considering the setting where multiplicities are different, we will focus on the special case where every adjacency has multiplicity one.
In this case, explaining a weighted adjacency graph with genomes is equivalent to decomposing into linear forests. Consequently, the minimum number of constituent genomes corresponds exactly to the linear arboricity of , denoted . A classical argument yields the following lower bound , where denotes the maximum degree of [11]. The intuition behind this is that each linear forest contributes at most two incident edges to any vertex. This idea will help us understand the general case.
In the general case, for a fixed gene , each constituent genome contributes at most two incident adjacencies to . The following lemma formalizes this fact.
Lemma 2. Let be a weighted adjacency graph and let be a pangenome of size explaining . Then for every :
The bound of Lemma 2 captures only local degree constraints and therefore does not completely characterize the global structure of . For example, if is a cycle, every vertex has degree two and the lemma yields a lower bound of one genome. However, a cycle is not itself a path forest and therefore cannot be explained by a single genome. Two genomes are required. Thus global topological constraints may increase the minimum pangenome size beyond the value predicted by local degrees alone.
The previous lemma provides a simple degree-based lower bound. In the weighted setting, however, a vertex may participate in several copies of the same adjacency. We therefore derive a stronger local estimate by considering how adjacency multiplicities can be paired within constituent genomes. We formalize this idea for the general weight case in Algorithm 1.
Function LocalK(v, H) Let . Let , where , be the set of multiplicities of . Initialize .
while contains at least two non-zero entries do Let and be the two entries with the largest multiplicities in . Set Set and
if one non-zero entry remains in then
return .
Algorithm 1: Greedy pairing computation.
The value returned by Algorithm 1 corresponds to the minimum number of genomes required to accommodate all incident adjacency occurrences of a single gene under the degree-two constraint.
Once the local bounds are computed for all vertices, we can estimate an approximate lower bound of as:
A PREPRINT
The bound on Equation 2 can be computed efficiently. For a vertex , Algorithm 1 performs pairing operations, since each iteration of Line 5 eliminates at least one non-zero multiplicity. Consequently, evaluating this bound for all vertices takes polynomial time.
In the unweighted case, the bound above reduces to the classical degree lower bound for linear arboricity. In the weighted setting, it naturally extends this idea by accounting for adjacency multiplicities. Although still local in nature and therefore not always tight, it provides an inexpensive estimate that is useful for guiding reconstruction algorithms. The bounds above characterize the feasible range of solution sizes but do not provide a constructive procedure for recovering the constituent genomes themselves. We now turn to the pangenome peeling problem and introduce two reconstruction strategies that seek to generate biologically plausible pangenomes while respecting the observed adjacency multiplicities.
4 Methods for Pangenome Peeling
Recall that any weighted adjacency graph admits a trivial explanation: for every adjacency , one may create genomes consisting solely of that edge. While such a construction exactly reproduces all observed multiplicities, it yields a highly fragmented pangenome and generally introduces many more genomes than necessary.
Our objective is therefore to join compatible adjacencies into larger path forests whenever possible while preserving the observed multiplicities. Since a weighted adjacency graph may admit multiple valid explanations, we focus on constructing the biologically meaningful solutions rather than attempting to enumerate all possibilities. The methods presented in this section iteratively construct a pangenome while keeping track of the adjacencies that have not yet been fully explained. We therefore introduce two concepts that are used throughout the reconstruction algorithms.
Let be a pangenome and let be an adjacency. A genome is a slack genome for if is also a genome. Equivalently, adding does not violate the path forest condition. The set of all slack genomes for an adjacency is denoted by . For a given edge , a genome belongs to its slack set if adding does not create a vertex of degree greater than two and if it does not create a cycle within a connected component. Thus the slack set identifies all genomes that can still accommodate without breaking the path forest constraints.
Let be a weighted adjacency graph and let be a partially reconstructed pangenome. We define the residual multiplicity of an adjacency as . We refer to the set of all residual multiplicities as residuals. Intuitively, represents the number of occurrences of that still need to be assigned to constituent genomes so that explains .
4.1 Sequential Edge Addition Algorithm (SEQ)
Our first approach processes adjacencies in decreasing order of multiplicity. For each occurrence of an adjacency, the algorithm aims to place it into an existing slack genome. If no such genome exists, a new genome containing that adjacency is created. Intuitively, the procedure greedily reuses already existing genomes whenever doing so preserves the path-forest property. New genomes are introduced only when all existing genomes would become invalid after the insertion of the edge. This procedure is formally presented in Algorithm 2.
Lemma 3. Let be a weighted adjacency graph. The pangenome given by Algorithm 2 explains .
Proof. We claim that throughout the execution of Algorithm 2 the following two conditions are satisfied: every genome in is a valid path forest and the number of copies of an inserted adjacency never exceeds its required multiplicity.
Initially so both properties hold trivially. Consider an adjacency with multiplicity . The outer loop in Line 5 processes every adjacency of while the inner loop in Line 7 executes exactly times. During each iteration, one occurrence of is inserted into a genome. If a slack genome exists, is inserted into that genome. By definition of slack genome, the resulting graph is a valid genome. Otherwise, a new genome consisting only of the adjacency is created. Therefore every insertion preserves the invariant that all the constituent genomes of are valid genomes.
Note that the residuals computed in Line 3 correspond to given multiplicities. After all residuals have been processed, exactly copies of every adjacency have been inserted across the genomes of . Therefore, the final endogenous weight of every adjacency satisfies . Hence, the resulting pangenome explains .
A PREPRINT
Function SequentialEdgeAddition(H = (G, A, m)) Compute the residuals for all . Let , be a sorted sequence of residuals where . Initialize . foreach do Compute the slack set from P. while r > 0 do if then Let i be the first element of . . Remove i from . else Create a new genome such that and . Set . return P.
Algorithm 2: Sequential Edge Addition (SEQ) Algorithm.

Figure 2: Algorithm 2 might add more genomes than necessary. Using the given instance , the pangenome is one possible output of the sequential addition algorithm that proceeded by adding the edges in the following order . is an optimal solution that takes one less genome.
Lemma 4. Let be a given weighted adjacency graph such that . Let . Algorithm 2 can be implemented in time.
Proof. The while loop on Line 7 inserts exactly one adjacency into a genome. Since the total number of adjacency occurrences is , the algorithm performs exactly insertions. For each insertion, the most costly operation is the slack set computation on Line 10. One can compute the slack set by scanning all genomes and testing whether can be inserted into each genome. Degree verifications can be done in constant time using adjacency information, while cycle detection requires determining whether and belong already to the same path component. Note that every genome satisfies . Thus the slack set verifications can be done in for a genome . Note that at most one genome can be created per insertion, we have then that , thus each insertion requires time. Thus over all the insertions, the total running time is . Hence, Algorithm 2 runs in polynomial time.
Although the algorithm yields a pangenome that explains , this pangenome is not necessarily a pangenome of minimum size. A counter example of this is presented in Figure 2.
It should be pointed out that Algorithm 2 guarantees a feasible solution but does not guarantee optimality with respect to the number of constituent genomes. Greedy insertion decisions made early in the construction may prevent subsequent adjacencies from being incorporated into existing genomes, forcing the creation of additional genomes. Figure 2 illustrates such a situation. The pangenome corresponds to a feasible output of the sequential edge addition algorithm, whereas explains the same weighted adjacency graph using one fewer genome.
A PREPRINT
4.2 Maximum Spanning Tree Peeling Algorithm (MST)
The SEQ algorithm treats each adjacency independently and therefore makes decisions solely based on local properties. These may lead to fragmented solutions and extravagant creation of additional genomes.
To obtain a more structured reconstruction, we exploit the observation that a tree is already very close to a path forest. In particular, if highly supported adjacencies are selected first, they can serve as a backbone from which longer genomic paths can be reconstructed. This motivates the use of a maximum spanning tree (MST) of the weighted adjacency graph. Given a weighted adjacency graph we first construct a maximum spanning tree . Since retains the adjacencies of highest multiplicity, it captures the strongest structural signal present in the input graph. Paths extracted from are therefore expected to correspond to frequently observed marker orderings.
Our proposed algorithm consists of three phases:
-
MST Peeling. A maximum spanning tree is constructed for each connected component of the weighted adjacency graph. The tree is then traversed bottom-up and paths are progressively extended along high-weight adjacencies.
-
Base Pangenome Construction. The paths extracted from the spanning tree are merged into genomes while preserving the path-forest constraint. This phase forms the base pangenome.
-
Weight reconciliation. Note that the spanning tree contains only a subset of the adjacencies present in . The residual multiplicities are therefore reinserted using the same slack-genome strategy described in the sequential edge addition algorithm. This guarantees that the final endogenous edge weights match the observed multiplicities.
A complete worked example of the pipeline is shown in Figure 3.
Phase 1: MST Peeling. Let be a maximum spanning tree of a connected component of . Starting from the leaves of , we perform a postorder traversal. Each leaf initially contributes a path consisting of a single marker. When processing an internal node , every path produced by a child is extended through the adjacency whenever a positive residual multiplicity remains for that edge. Each successful extension reduces the residual weight by one. Consequently, high multiplicity edges may contribute to multiple reconstructed paths. At the end of the traversal, the last visited vertex contains a collection of paths.
Phase 2: Base Pangenome Construction. The paths produced during MST peeling must subsequently be converted into genomes. Two paths can be assigned at the same genome whenever they do not violate the path-forest constraints. In particular paths might be joined if their marker sets are disjoint or if they intersect in a single marker whose degree remains at most two after insertion. The resulting base pangenome forms an initial explanation of the spanning-tree backbone. Since the MST contains only the most supported adjacencies, these genomes tend to contain substantially longer paths than those produced by the purely sequential strategy.
Phase 3: Weight reconciliation. The MST reconstruction explains only the multiplicities represented by the spanning tree. For every adjacency with positive residual multiplicity, we repeatedly insert additional occurrences of into slack genomes whenever possible. If no slack genome exists, then a new genome is created. This reconciliation continues until all residual multiplicities vanish. Since every residual occurrence is ultimately assigned to some genome, the final pangenome explains the original weighted adjacency graph exactly.
Lemma 5. Let be a weighted adjacency graph. Algorithm 3 returns a pangenome that explains .
Proof. We claim that throughout the execution of Algorithm 3 the following two conditions are satisfied: every genome in is a valid path forest and no inserted adjacency exceeds its required multiplicity.
During the MST peeling phase on Line 1, paths are extended only through adjacencies with positive residual multiplicity. Whenever an adjacency is used to extend a path, the corresponding residual is decreased by one. Since vertices are appended only at path endpoints, each constructed structure remains a simple path. In particular, no paths that consist of isolated vertices can be created since for all by definition of . Consequently, the collection of paths on Line 31 consists exclusively of path components. When the function on Line 16 is executed, paths are inserted into an existing genome only if the resulting graph remains a path forest. Otherwise a new genome is created. Note that since these genomes belong to different connected components, their vertex sets are disjoint, and thus the genome merge on Line 36. Therefore, every genome constructed by the algorithm is a valid path forest, proving our first claim.
A PREPRINT
Function MSTPeel(T, R) Let denote the set of paths associated to . foreach do if is a leaf then Create path that consists of the vertex . Add to else Initialize . foreach do foreach where belongs to an endpoint of do if then Extend by appending and update the endpoint. . Add to . // Note that is the last visited vertex return . Function MergePaths(Q) Initialize . foreach path do if there exists a slack genome for an endpoint of . then Insert into . else Create a new genome containing . Add it to . return . Function MSTPeeling() Compute the connected components of . Let . foreach connected component do Compute a maximum spanning tree of . Initialize residuals for every adjacency of . . // Build genomes for component . Add to . // Merge genomes from distinct connected components Select one set . foreach do Merge genomes of into genomes of whenever possible. . // Weight reconciliation foreach such that do while do Insert into a slack genome if one exists, otherwise create a new genome. . return .
Algorithm 3: Maximum Spanning Tree Peeling Algorithm (MST).
A PREPRINT

Figure 3: An illustrative example of a solution using Algorithm 3 and input graph of Figure 1. In the first phase, we compute the Maximum Spanning Tree, then do a post order path retrieval per leaf. On the second phase, we merge the obtained paths to construct a Base Pangenome. On phase 3, we add all missing edges whose residuals are more than zero, creating new genomes when current ones do not admit a given adjacency.
To prove the second claim, after the first two phases, some adjacencies may still have positive residual multiplicity. Let denote the residual multiplicity of . The reconciliation phase processes every residual occurrence exactly once. Whenever possible, an occurrence of is inserted into a slack genome. Otherwise a new genome containing is created. By definition of a slack genome, every insertion preserves the path-forest property. The reconciliation phase terminates only when all residuals vanish. Hence, for every adjacency we have . Therefore the resulting pangenome explains .
Lemma 6. Let be a given weighted adjacency graph such that . Let . Algorithm 3 can be implemented in time.
Proof. The peeling phase in Line 1 performs at most path extensions. The reason is that each residual occurrence is processed at most once. Every successful extension of a path decreases some residual by one, and the total number of such decrements over the entire algorithm is at most . Consequently, the peeling phase requires time.
Let denote the paths returned by the function on Line 16. Note that since every leaf on the given connected component contributes with one path, . Each leaf of the MST initializes a single path and no new paths are created thereafter. Since a tree on vertices has at most leaves, at most paths are maintained throughout the procedure. Furthermore, each path is extended only along tree edges and therefore contains at most vertices. As in Lemma 4, we know that the slack genome computations can be performed in time. As a consequence, the for loop in Line 18 can be performed in time.
During the component merge phase (Line 16), every path is inspected once. To determine whether can be inserted into an existing genome, the algorithm may scan all currently constructed genomes. Since at most one new
A PREPRINT
genome can be created for each path, there are at most genomes. Using the same slack-set computation as in Algorithm 2, testing a genome requires time. Hence the merge phase requires at most time.
Finally, during the weight reconciliation phase on Line 38, every remaining residual occurrence is inserted exactly once. Since there are at most residual occurrences and each insertion may require scanning at most genomes of size at most , this phase also runs in time. Combining the bounds for all phases yields an overall running time of . Therefore Algorithm 3 runs in time.
Unlike SEQ, which constructs genomes from individual adjacencies, MST first recovers a globally consistent backbone and only subsequently reconciles missing multiplicities, producing pangenomes with characteristically different structural properties.
5 Results
We have seen that there are various ways of constructing a pangenome from a weighted adjacency graph. In practice, we might wish to define objective functions on these constructions. One way to do this is to simulate pangenomes under realistic conditions and to see how well our algorithms performed on their induced adjacency graphs. Some criteria for this evaluation include how closely the number of constituent genomes output by SEQ and MST approximate the number produced by the simulated input, how much of the core genome is recovered and, most important, how closely the output set of constituent genomes resembles the input. Here we describe a simulation experiment and the results of these three evaluations when we apply SEQ and MST.
5.1 Simulation benchmark
To evaluate pangenome peeling under controlled conditions, we generated synthetic pangenomes for which the constituent genomes were known exactly. Each simulated dataset begins with an ancestral genome consisting of a single linear path containing unique markers. From this ancestor, we generate descendant genomes independently. Each descendant is obtained by copying the ancestral genome and applying a collection of evolutionary events. The number of occurrences of each event type is sampled independently from a Poisson distribution , where is the user-specified event rate and is a branch-length scaling factor. To generate datasets of varying evolutionary level, the branch-length scale is sampled from a noise-dependent interval. Low evolutionary level datasets use scaling factors between 0 and 0.5, medium level datasets use values between 0.5 and 2.0, and high level datasets use values between 3.0 and 5.0. The simulator implements a variety of structural and gene-content modifications, including gene insertions, gene deletions, adjacency deletions, inversions, rearrangements, chromosome fissions, chromosome fusions, and translocations. These operations modify either the gene content or the adjacency structure of the descendant genomes while preserving biologically meaningful linear genome architectures. The average number of simulated event types per evolutionary level can be found in Table 1. The resulting collection of genomes constitutes the ground-truth pangenome. To generate an input instance for pangenome peeling, we aggregate all adjacencies observed across the simulated genomes into a weighted adjacency graph, where edge weights correspond to adjacency frequencies.
The simulated event set was designed to capture both gene-content evolution and large-scale genome rearrangements. Gene insertions and deletions alter the presence or absence of markers, whereas inversions, translocations, fissions, fusions, and adjacency modifications alter genome structure without necessarily changing gene content. This combination produces benchmark instances with varying levels of topological and compositional configurations.
Table 1: Average number of simulation events.
| Event Type | Low | Medium | High |
|---|---|---|---|
| Insertions | 11 | 60.2 | 192.5 |
| Edge deletions | 9.7 | 58 | 172.26 |
| Gene deletions | 9.70 | 56.10 | 158.46 |
| Inversions | 8.26 | 55.26 | 180.76 |
| Fissions | 10.50 | 48.90 | 168.93 |
| Fusions | 10.80 | 58.83 | 197.46 |
| Translocations | 22.03 | 102.73 | 360.56 |
A PREPRINT



(a)
(b)
(c)
Figure 4: Differences in number of constituent genomes across simulated pangenomes of varying size and complexity. Columns correspond to (a) low, (b) medium and (c) high evolutionary level settings. Figures show the raw estimation error and their corresponding MAPE values for SEQ and MST methods. On average, .
5.2 On inferring the number of constituent genomes
The first objective of pangenome peeling is to recover the number of genomes that gave rise to the observed weighted adjacency graph. For each simulated dataset, we compared the true number of constituent genomes ( ) with the number inferred by each algorithm ( ). Figure 4 summarizes the difference between the inferred and the true number of genomes. The top row reports the raw error while the bottom row is an adapted Mean Absolute Percentage Error (MAPE) calculated as . Overall, MST consistently outperforms SEQ. Across all the different generated instances MAPE values for MST remain approximately below 150%, while SEQ frequently exceeds this threshold. The best performance of MST occurs in the high evolutionary level simulations, where the average MAPE value remains below 75%.
5.3 Inference of core content
In addition to recovering the number of constituent genomes, we evaluated whether the inferred pangenomes preserved the core set of the simulated datasets. For each benchmark instance, we identified the core as the set of markers present in every constituent genome. We then compared the core of the simulated pangenome with the core set of each inferred solution. Similarity was measured using the symmetric difference between the two sets, , where denotes the core gene set of the simulated pangenome and denotes the core gene set reconstructed by each peeling algorithm. A symmetric difference of zero indicates perfect recovery of the core of the simulated instance, whereas larger values indicate markers that were either incorrectly included in or excluded from the inferred core set. Figure 5 summarizes the results across all simulation settings.
We observe that for both methods the symmetric difference increases with input size, suggesting that recovering the correct core genome becomes progressively more difficult as the number of markers and constituent genomes grows. However, the two methods exhibit different distributions. As the input size increases, the boxplots diverge not only in
A PREPRINT

(a)

(b)

(c)
Figure 5: Size of the symmetric difference between the true core gene set and the core gene set of the inferred pangenomes. Columns correspond to different evolutionary levels: (a) low, (b) medium and (c) high. Lower values indicate an accurate recovery of the true core gene set. Results are shown for both methods Sequential Edge Addition (SEQ) and Maximum Spanning Tree (MST). On average, the value of .
their median values but also in their variability and spread, suggesting that both methods differ in both accuracy and robustness with respect to core set reconstruction. These differences become more evident in bigger instances.
5.4 Inference of genome structure
Beyond core content and constituent genomes, we evaluated whether the inferred genomes recovered the original simulated set. Pairs of individual genomes like the ones we simulated are most appropriately compared using the DCJ-indel distance implemented in UniMoG [12]. Unlike the classical DCJ distance, the DCJ-indel formulation accommodates genomes with unequal gene content while remaining symmetric and computationally efficient [13]. The distance accounts for insertions, deletions, inversions, translocations, fusions, and fissions.
The comparison between the two sets of genomes, one simulated and the other inferred by peeling of the adjacency graph, is complicated by the lack of any necessary one-to-one correspondence between elements of the two sets. To establish such a correspondence, we first computed the DCJ-indel distance between every inferred genome and every simulated genome. To reduce the resulting all-to-all comparisons to the best one-to-one correspondence, we interpret these comparisons as a complete bipartite graph where each partition corresponds to one of the sets of constituent genomes. We then can compute a minimum weight matching (MWM) to identify the set of genomes that minimize the total DCJ-indel distance. We can consider this matching to provide the most similar correspondence between the inferred and simulated sets. The DCJ-indel distances associated with the matched pairs can be used to assess the structural accuracy of the inferred pangenome. Lower distances indicate a more faithful reconstruction of the original genome organization.
Figure 6 illustrates the structural accuracy of the inferred pangenomes, summarizing the average matched DCJ-indel distance across all simulation settings. Overall, the MST method consistently yields lower average distances than SEQ indicating a more accurate recovery of the original genome.
6 Conclusion
In this work we introduced the pangenome peeling problem and two algorithms that construct pangenomes explaining a given weighted adjacency graph. We observed differences in the inferred number of constituent genomes, the recovered core gene set content and the structural similarity of the reconstructed genomes using the DCJ-indel distance. Across nearly all simulation settings, the maximum spanning tree method outperformed the sequential edge addition method, yielding more accurate estimates of pangenome size and structure.
Several directions for future work remain. First, the current model assumes that all genes are unique and does not account for gene duplications. Extending the framework to work with duplicated genes would increase its biological significance. Second, incorporating prior information, such as known or partially known core or shell markers, may help reduce the ambiguity of the peeling problem and perhaps improve reconstruction accuracy.
A PREPRINT

Figure 6: Summary of average MWM DCJ-id distance among all the simulated datasets. Lower distances correspond to a more accurate reconstruction of the genome structure.
References
[1] Murukarthick Jayakodi, Hyeonah Shim, and Martin Mascher. What are we learning from plant pangenomes? Annual Review of Plant Biology, 76:663–686, 2025.
[2] Simona Secomandi, Guido Roberto Gallo, Riccardo Rossi, Carlos Rodríguez Fernandes, Erich D Jarvis, Andrea Bonisoli-Alquati, Luca Gianfranceschi, and Giulio Formenti. Pangenome graphs and their applications in biodiversity genomics. Nature Genetics, 57(1):13–26, 2025.
[3] Chong Liu, Hang Xu, Zheng Li, Yukun Wang, Jiaxian Zhang, Siwei Qiao, and Hao Zhang. From map to blueprint: the plant pan-genome unraveling genetic mysteries and powering precision breeding. Frontiers in Plant Science, Volume 16 - 2025, 2025.
[4] Ying-hui Li, Guangyu Zhou, Jianxin Ma, Wenkai Jiang, Long-guo Jin, Zhouhao Zhang, Yong Guo, Jinbo Zhang, Yi Sui, Liangtao Zheng, et al. De novo assembly of soybean wild relatives for pan-genome analysis of diversity and agronomic traits. Nature biotechnology, 32(10):1045–1052, 2014.
[5] Jian Wang, Wu Yang, Shaohong Zhang, Haifei Hu, Yuxuan Yuan, Jingfang Dong, Luo Chen, Yamei Ma, Tifeng Yang, Lian Zhou, et al. A pangenome analysis pipeline provides insights into functional gene identification in rice. Genome Biology, 24(1):19, 2023.
[6] Gergely J Szöllösi, Eric Tannier, Nicolas Lartillot, and Vincent Daubin. Lateral gene transfer from the dead. Systematic biology, 62(3):386–397, 2013.
[7] Jordan M Eizenga, Adam M Novak, Jonas A Sibbesen, Simon Heumos, Ali Ghaffaari, Glenn Hickey, Xian Chang, Josiah D Seaman, Robin Rounthwaite, Jana Ebler, et al. Pangenome graphs. Annual review of genomics and human genetics, 21(1):139–162, 2020.
[8] Z Bao and D. Weigel. Complexity welcome: Pangenome graphs for comprehensive population genomics. Quantitative Plant Biology, 6:e43, 2025.
[9] Andrea Guarracino, Simon Heumos, Sven Nahnsen, Pjotr Prins, and Erik Garrison. ODGI: understanding pangenome graphs. Bioinformatics, 38(13):3319–3326, 2022.
[10] Renzo Gómez and Yoshiko Wakabayashi. Nontrivial path covers of graphs: existence, minimization and maximization. Journal of Combinatorial Optimization, 39(2):437–456, 2020.
[11] Jin Akiyama, Geoffrey Exoo, and Frank Harary. Covering and packing in graphs. iii: Cyclic and acyclic invariants. Mathematica Slovaca, 30(4):405–417, 1980.
[12] Rolf Hilker, Corinna Sickinger, Christian NS Pedersen, and Jens Stoye. UNIMOG—a unifying framework for genomic distance calculation and sorting based on dcj. Bioinformatics, 28(19):2509–2511, 2012.
A PREPRINT
[13] Marília DV Braga, Eyla Willing, and Jens Stoye. Double cut and join with insertions and deletions. Journal of Computational Biology, 18(9):1167–1184, 2011.