Full text
65,028 characters
Β· extracted from
preprint-html
Β· click to expand
Simple k-RF Metrics for Comparison of Labeled DAGs | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results Simple k-RF Metrics for Comparison of Labeled DAGs View ORCID Profile Elahe Khayatian , View ORCID Profile Louxin Zhang doi: https://doi.org/10.1101/2025.07.07.663441 Elahe Khayatian 1 Department of Mathematics, National University of Singapore , Singapore 119076, Singapore Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Elahe Khayatian Louxin Zhang 1 Department of Mathematics, National University of Singapore , Singapore 119076, Singapore Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Louxin Zhang For correspondence: matzlx{at}nus.edu.sg Abstract Full Text Info/History Metrics Supplementary material Preview PDF Abstract Causal relationships between different entities are often modeled as labeled acyclic digraphs (DAGs) in biology and healthcare, in particular for depicting the progression of malignant tumor cells. Comparison of labeled DAGs is essential for developing methods for inference and evaluation of DAG models. Therefore, a robust dissimilarity metric is critical for such comparison tasks. We introduce new dissimilarity measures for labeled DAGs by refining the k-Robinson-Foulds distance, originally defined to compare labeled trees. The new measures are defined based on the comparison of local node-induced multisets of labels. They can be used to compare DAGs with different label sets, without the need to introduce auxiliary nodes or remove existing ones. 1 I ntroduction NEtworks (or graphs) are widely used as mathematical models to represent a binary relation between entities, such as individuals in social networks [ 27 ], proteins and drugs in biological networks [ 7 ], and species in evolutionary networks [ 13 ]. Network modeling often provides valuable insights into these relationships. For example, drug interaction networks help in prediction of the synergistic effects of drug combinations [ 7 ]. Phone call networks facilitate the discovery of communication patterns within a community [ 27 ]. Evolutionary networks help uncover the evolutionary history of species [ 13 ]. Since these binary relations are often asymmetric, acyclic digraphs (DAGs) are commonly used for modeling. For instance, DAGs find applications in epidemiology [ 2 ] and pediatrics [ 34 ]. DAGs are also used to design deep learning methods for action recognition tasks ([ 31 ], [ 33 ]) and generating gene expression data ([ 12 ], [ 36 ]). Consequently, researchers are particularly motivated to propose metrics for effectively assessing similarity/dissimilarity between DAGs. These dissimilarity measures play important roles in DAG aggregation [ 23 ] and learning, having wide applications in biology and health-care [ 35 ]. A number of dissimilarity metrics have been proposed in the space of phylogenetic networks ([ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 15 ], [ 17 ], [ 21 ], [ 22 ], [ 25 ], [ 32 ]). Since phylogenetic networks have only leaves labeled, these dissimilarity measures are not ideal to compare the DAGs in which all nodes are labeled [ 11 ], [ 19 ], which also appear frequently in other fields. For example, in a pediatric study [ 34 ], casual relationship is represented as a DAG in Figure 1 , where each node has a label. Download figure Open in new tab Fig. 1. A labeled DAG (directed acyclic graph) model in a pediatric study (redrawn from [ 34 ]). It illustrates the following causal relationships: Low parental education leads to both increased screen time (e.g., watching TV, playing video games) and a higher risk of obesity in children. Increased screen time directly reduces physical activity, which further raises the risk of obesity. Both increased screen time and obesity have also been associated with greater risks of low self-esteem and self-harm in adolescents. In cancer biology, labeled DAGs are used to model the progression trajectory of tumor evolution [ 9 ], [ 10 ], [ 20 ], [ 24 ], [ 29 ], providing valuable information for cancer diagnosis and treatment [ 10 ]. In these models, each node represents a cell population and is labeled with a set of mutations that characterize the population. Metrics for comparing cancer progression models (CPMs) have been proposed in [ 11 ], [ 16 ], and [ 19 ]. Katz Graph Similarity (KGS) [ 26 ] is another kind of dissimilarity metric proposed for various applications of DAGs. When comparing two DAGs, KGS first computes the Katz Similarity Vector (KSV) for each DAG [ 26 ] to capture node similarity, and then the resulting KSVs are compared. A related measure is the Generalized Kendall-tau [ 23 ] that quantifies similarity based on the pairwise dissimilarity between corresponding node pairs in the two DAGs. Both KGS and Generalized Kendall-tau are parameter-based similarity measures. The above-mentioned metrics share a common weakness: they are not efficient for comparing DAGs with different label sets. For example, Malmi et al. [ 23 ] suggest adding isolated nodes to align label sets, while Nayak et al. remove differing labels in their simulation experiments in [ 26 ]. However, these strategies may alter the structure of the input DAGs or artificially increase the measured dissimilarity between them. In this work, we propose a new class of dissimilarity measures for labeled DAGs. They are developed from the k -RF distance proposed for labeled trees in [ 19 ] and are thus called the simple and modified k -RF measures. The new measures are defined based on the comparison of local node-induced multisets of labels. These measures have been shown to be both metric and computationally efficient in the space of 1-labeled DAGs. Moreover, they can be naturally extended to compare DAGs with different label sets, without the need to introduce auxiliary nodes or remove existing ones. Our contributions to labeled DAG comparison are presented in the next eight sections. In Section 2, basic concepts and notation that are used in this study are introduced. In Section 3, we define the simple k -RF distances for rooted 1-labeled trees. In Section 4, the measures defined in Section 3 are generalized for 1-labeled DAGs. Their mathematical properties are investigated. In Section 5, considering the limitation of the simple k -RF distances, the modified k -RF measures are introduced. In Section 6, the simple and modified k -RF measures are compared with some existing measures. In Section 7, the simple k -RF and the k -RF measures are compared for trees with different label sets. Finally, we conclude the paper by summarizing the key points in Section 8. 2 C oncepts and N otation 2.1 Graphs and Digraphs A graph or digraph G is a mathematical structure consisting of a set of nodes V ( G ) and a set of edges E ( G ). In a graph, each edge is an unordered pair of nodes. If u and v are joined by an edge e in a graph, we can write e = ( u, v ) or e = ( v, u ). In a digraph, each edge is an ordered pair of nodes. Let G be a graph or digraph. If e = ( u, v ) β E ( G ), u and v are said to be adjacent to each other; e is incident to u and v ; and u and v are the endpoints of u . The degree d ( u ) of a node u is defined as the number of edges incident to it. Furthermore, in a digraph G , if e = ( u, v ) β E ( G ), u and v are called the tail and head of e , respectively; e is called an outgoing edge of u and an incoming edge of v . The indegree and outdegree of a node u are defined as the number of its incoming and outgoing edges, respectively, which are denoted as d in ( u ) and d out ( u ). Clearly, the degree of u is equal to the sum of the indegree and outdegree of u . In a graph, the nodes of degree 1 are called leaves. In a digraph, the nodes of outdegree 0 are called leaves. The set of all leaves of a graph or dirgraph G is denoted by Leaf( G ). The nodes of indegree 0 are called the sources. Non-leaf nodes are called internal nodes. A path of length k from u to v in a graph or digraph G is a sequence of nodes u = u 0 , u 1 , u 2 , β¦, u k = v such that ( u i , u i +1 ) β E ( G ) for any 0 β€ i β€ k β 1. A path from u to itself is called a cycle . The distance from u to v in a graph or digraph G is the length of the shortest paths from u to v , denoted as d G ( u, v ) or simply d ( u, v ). We set d G ( u, v ) = β if there is no path from u to v in G . We define the diameter of a graph G as max u,v β V ( G ) { d G ( u, v )}. For a digraph G , the diameter is defined as the diameter of the graph with the node set V ( G ) and the edge set E ( G ), where the order on each e β E ( G ) is ignored. A graph T is called a tree if there exists exactly one path from any u β V ( T ) to any v β V ( T ). An edge ( u, v ) β E ( G ) is said to be redundant if there is a path with length k β₯ 2 from u to v . 2.2 Labeled Graphs and Digraphs Let X be a set and β ( X ) denote the set of all subsets of X . A graph or digraph G is labeled over X if it is equipped with a function β : V ( G ) β β ( X ) \ {β
} such that βͺ v β V ( G ) β ( v ) = X . In particular, if each β ( v ) has only one element and β is one-to-one, G is said 1 -labeled over X , where we identify each node v with its label β ( v ). Two 1-labeled graphs or digraphs G and are identical if and only if and . In this paper, a labeled graph or digraph is assumed to be 1-labeled. 2.3 DAGs and Rooted Trees A digraph G is called a DAG if it contains no cycle. It is called a rooted DAG if it has exactly one source. Let G be a rooted DAG and u, v β V ( G ) be distinct. If ( u, v ) β E ( G ), u is said to be a parent of v and v a child of u . More generally, u is called an ancestor of v and v is called a descendant of u if there is a path from u to v with length at least one. The sets of the ancestors and descendants of u are denoted by A G ( u ) and D G ( u ), respectively. The level of a node w β V ( G ) is defined to be the maximum length of a directed path from a source to w . The depth( G ) is the maximum level of a node. A rooted tree is a rooted DAG in which every non-root node has exactly one parent. 2.4 Multisets and Their Operations A collection of elements is called a multiset if each element can occur a finite number of times. If A is a multiset and x β A , the number of occurrences of x in A is denoted as m ( x, A ). Thus, A can be represented as A = { x m ( x,A ) : x β Supp( A )}, where Supp( A ) denotes the set of all distinct elements in A . Let A and B be two multisets. We say A β m B if and only if Supp( A ) β Supp( B ) and β€ m ( x, A ) m ( x, B ) for any x β Supp( A ). We also say A = B if and only if Supp( A ) = Supp( B ) and m ( x, A ) = m ( x, B ) for any x β Supp( A ). In addition, we also define the following operations on multisets: where m ( x, X ) = 0 if x β/ X for X = A, B . 2.5 Multi-labeled DAGs Let X be a set and β³ ( X ) denote the collection of multisets with Supp( X ). A DAG G is called a multi-labeled DAG on X if G is equipped with a function β : V ( G ) β β³ ( X ) such that βͺ vβV ( G ) Supp( β ( v )) = X and β ( v ) β β
for every v β V ( T ). 2.6 Resolution of Dissimilarity Measures let D be a space of labeled (multi-labeled) DAGs and d, d β² : π Γ π β [0, 1 ] be two dissimilarity measures. We say that d has a higher resolution than d β² on π if | d (π Γ π)| > | d β² (π Γ π)|, where for f = d, d β² . 3 S imple k -RF D istances for L abeled T rees The authors use the k -neighborhood to define the k -RF metrics in the space of rooted labeled trees [ 19 ]. Let T = ( V, E ) be a rooted labeled tree and let k β₯ 0. Each edge e = ( u, v ) β E induces an ordered pair P T,k ( e ) = ( D T,k ( v ), B T,k ( u ) \ D T,k ( v )) of label subsets, where D T,k ( v ) and B T,k ( u ) are respectively defined as: Additionally, define π« ( T, k ) = { P T,k ( e ) | e β E ( T )}. Definition 1. ([ 19 ]) Let X and Y be two rooted labeled trees. The k-RF distance between X and Y is defined as: where Ξ is the symmetric set difference operator . In the rest of this section, we will simplify the metric to develop a computationally efficient measure for labeled DAGs. 3.1 Definition Let T be a rooted labeled tree and let k β₯ 0. We define where D T,k ( v ) is defined in Eqn (1) and is called k -descendant-hood of v in T . Definition 2. Let X and Y be two rooted labeled trees. The simple k-RF (s-k-RF) dissimilarity measure between X and Y is defined as follows . where Ξ is the symbol for symmetric set difference . Observation 1. Let T be a rooted labeled tree and k β₯ 0. In addition, let r be the root of T . Then, D T,k ( r ) = B T,k ( r ). Observation 2. Let T be a rooted labeled tree and k β₯ 0. In addition, assume v β V ( T ) and | V ( T )| > 1. Then, we have: If v is a non-root internal node, there exist two nodes u, w β V ( T ) such that ( u, v ), ( v, w ) β E ( T ). As such, computing both D T,k ( v ) and B T,k ( v ) is necessary to calculate P T,k ( e 1 ) and P T,k ( e 2 ), where e 1 = ( u, v ) and e 2 = ( v, w ). If v is the root of T, there is at least one node x β V ( T ) such that e = ( v, x ) β E ( T ). Thus, by Observation 1, computing D T,k ( v ) is needed to compute P T,k ( e ). If v is a leaf of T, there is at least one node y β V ( T ) such that e = ( y, v ) β E ( T ). Thus, computing D T,k ( v ) is needed to obtain P T,k ( e ). Observation 2 highlights that for a rooted labeled tree T with n nodes, computing all n sets in β± ( T, k ) is required to calculate π« ( T, k ); additionally, computing B T,k ( v ) for each non-root internal node v β V ( T ) is needed to ob-tain π« ( T, k ). Furthermore, n β 1 set difference operations are needed to obtain the second term of ordered pairs in π« ( T, k ). As such, the s- k -RF distances could enhance the computation efficiency and space complexity of the k -RF distances, making d s-k-RF a simplified version of d k-RF . We now explore the relation of the s- k -RF distances with the traditional RF distance. Definition 3. ([ 28 ]) Let X and Y be two rooted labeled trees. The RF distance between X and Y is defined as: where π ( T ) = { D T ( v ) βͺ { v } : v β V ( T )} for T = X, Y . Proposition 1. Let S and T be two rooted labeled trees and m = max{ depth ( S ), depth ( T )}. The s-k-RF distance between S and T is equal to d RF ( S, T ) for any k β₯ m . Proof . Note that if k β₯ m, D X,k ( v ) = D X ( v ) βͺ { v } for any v β V ( X ) in X = S, T . The result is derived from Definitions 2 and 3. 3.2 Mathematical Properties Lemma 1. For every three sets A, B, S , Proof . Let x β A Ξ B = ( A \ B ) βͺ ( B \ A ). Without loss generality, we may assume x β A \ B . Then, if x β S, x β S \ B β S Ξ B . If x β/ S , then x β A \ S β A Ξ S . Lemma 2. Let T be a rooted labeled tree such that | V ( T ) | β₯ 2 and L be a subset of Leaf ( T ). Define T β² to be the tree obtained by deleting the leaves of L together with the edges incident to these leaves. Then, for any k β₯ 1, Proof . Note that V ( T β² ) = V ( T ) \ L . For each v β V ( T β² ), by definition, and thus . Let u β V ( T β² ). If , then and . Since any directed path of T β² is also a path in . This implies that u β D T,k ( v ). Since u β β, u β D T,k ( v ) \ L . Thus, . Conversely, for any u β D T,k ( v ) \L, u β L and there is a directed path P from v to u with length at most k . Since a leaf cannot appear in the middle of a path, the path P is also a path in T β² . This implies that . Thus, . Taken together, the above two facts imply that for each v β V ( T β² ). Therefore, Eqn. (6) holds. Theorem 2. Let k β₯ 1 be an integer. The s-k-RF defined in Eqn. (5) is a metric in the space of rooted labeled trees . Proof . The non-negativity and symmetry properties can be observed from the definition of the dissimilarity measure. Let X, Y, Z be three rooted labeled trees. Setting A = β± ( X, k ), B = β± ( Y, k ) and S = β± ( Z, k ), we obtain: from Lemma 1. This proves the triangle inequality. Lastly, we prove that d s-k-RF ( X, Y ) = 0 implies that X and Y are identical for any two rooted labeled trees X and Y . Clearly. the value 0 of the measure implies that V ( X ) = V ( Y ). For the purpose, we just need to prove that E ( T ) can be uniquely determined by β± ( T, k ) using the mathematical induction on | V ( T ) |. If T consists of a singe node v , then β± ( T, k ) = { v }. If T has two or more nodes, the root r of T has at least one child. Since k β₯ 1, D T,k ( r ) contains at least two nodes. For any leaf β of T, D T,k ( β ) = { β }. This implies that ( T, k ) contains at least 2 distinct k -descendant sets. Therefore, T is the single-node tree if and only if β± ( T, k ) is a singleton. Assume E ( M ) is uniquely determined by β± ( M, k ) for arbitrary rooted labeled tree M such that | V ( M ) | < t . We consider a rooted labeled tree T such that | V ( T ) | = t . There is no edges leaving a leaf. Since k β₯ 1, D T,k ( v ) = { v } if and only if v is a leaf. Therefore, we can identify all leaves of T from the singletons of ( T, k ). For v β V ( T ) \ Leaf ( T ), there is a unique edge e = ( u, v ) entering any v . Since k β₯ 1, the children of v are all leaves if and only if D K ( v ) \ Leaf ( T ) = { v }. Therefore, we can identify v whose children are all leaves from the subsets S β β± ( T ) such that S \ Leaf ( T ) contains only v . Let V β² be the set of all nodes whose children are just leaves and . Since V β² is nonempty, D T ( V β² ) β β
. Define E β² ( T ) = {( x, y ) β E ( T ) | x β V β², y β, D T ( V β² )}. For the tree T β² obtained from T by the removal of the leaves in D T ( V β² ), | V ( T β² )| = | V ( S ) | β| D T ( V β² )| < k . By Lemma 2, β± ( T β² , k ) can be efficiently constructed from β± ( T, k ). By the induction hypothesis, E ( T β² ) is uniquely determined by β± ( T β² , k ). As a result, E ( T ) = E ( T β² ) βͺ E β² ( T ) is determined. This concludes the proof. 3.3 Frequency Distribution of S- k -RF Distances The simulation experiments reported in [ 19 ] suggest that the distribution of the k -RF distances between labeled trees varies with different values of k . This observation was recently confirmed by Fuchs and Steel in [ 14 ]. They mathe-matically proved that a linear transformation of ( n β 2)-RF distance follows a normal distribution, whereas that of 0-RF distance has a Poisson distribution. Here, we investigate whether the untransformed s- k -RF distance in the space of rooted labeled trees follows a normal or Poisson distribution. To this end, we computed pairwise s- k -RF distances between labeled n -node rooted trees with the same label set for n = 4, 5, 6. The resulting histograms are given in Figures 2 , 3 , 4 , respectively, where the Gaussian fits were obtained using the following curve_fit function Download figure Open in new tab Fig. 2. The distributions of s- k -RF scores for k = 1, 2, 3 in the space of rooted labeled 4-node trees with the same label set. The red curve is a Gaussian fit. Download figure Open in new tab Fig. 3. The distribution of s- k -RF scores for k = 1, 2, 3, 4 in the space of rooted labeled 5-node trees with the same label set. The red curve is a Gaussian fit. Download figure Open in new tab Fig. 4. The distributions of s- k -RF distances in the space of rooted labeled 6-node trees with the same label set for k = 1, 2, 3, 4, 5. The red curve is a Gaussian fit. from the SciPy library, which approximates a normal distribution. In Section IV of Supplementary Document, Figures S1, S2, and S3 show the distribution of pairwise s- k -RF distances between labeled n -node rooted trees with the same label set for n = 7, 10, 13, respectively. These results suggest that the distribution of the s- k -RF distances appears to be normal for each n and for all k = 1, β¦, n β 1. 3.4 Correlation of S- k -RF Distances with Several Distances Using a Pearson correlation analysis, we compared different s- k -RF distances with several existing distances. We first generated a set of random trees with 30 nodes using a program described in [ 16 ]. In each generated tree, the root was always labeled 0, while the remaining vertices were labeled with integers from 1 to 29. After creating the dataset, we sampled 950 labeled rooted trees from the dataset. We divided the trees into 5 families and changed the labels of some nodes of the trees within the last four families so that trees in each family shared the same label set and trees from different families had distinct but overlapping label sets. We then computed all pairwise distances between trees within each family, using s- k -RF scores for 1 β€ k β€ 21; CASet β© [ 11 ]; DISC β© [ 11 ]; and GRF [ 22 ] (Section I, Supplementary Document). Finally, we computed Pearson correlation of each s- k -RF measure with the other three measures. As illustrated in the left plot of Figure 5 , we observed the following facts. Download figure Open in new tab Fig. 5. Pearson correlation of s- k -RF measures with three existing measures CASetβ© [ 11 ], DISCβ© [ 11 ], and GRF [ 22 ]. The analysis was conducted on random trees with the same label sets (left) and on trees with different but overlapping label sets (right). Each s- k -RF measure indicated a strong correlation with DISCβ© and less correlation with CASetβ©. There was no clear change in the correlation values when k increased from 1 to 21. The correlation values were between 0.55 and 0.85. Next, we computed the distance for any pair containing one tree from the first family and one tree from other families, using each of the above-mentioned dissimilarity measures. Then, we computed Pearson correlation of each s- k -RF measure with each of the other three measures. In this case, we observed the following in Figure 5 (right). Each s- k -RF measure indicated a higher correlation with DISCβ© and less correlation with CASetβ©. The correlation values were between 0.4 and 0.7. As Figure 5 shows, the correlation between each s- k -RF (1β€ k β€ 21) and each of the above three measures was higher in the case where each investigated pair contained trees with the same label set. 3.5 Correlation of S- k -RF and k -RF Distances We further analyzed the Pearson correlation between the s- k -RF distance and the k -RF distance. For this purpose, we utilized the dataset described in Section 3.4. Recall that the dataset contained 5 tree families; additionally, trees from each family shared the same label set, whereas the trees across the families had different but overlapping label sets. We then computed the k -RF (1β€ k β€ 21) distance between any two trees from each family and between any two trees T and S , where T was from the first family and S was from the other families. The Pearson correlation coefficients between the s- k -RF and the k -RF (1 β€ k β€ 21) are presented in Figure 6 . The analyses suggest: Download figure Open in new tab Fig. 6. Pearson correlation of the s- k -RF measure with the k -RF measure (1β€ k β€ 21). The analysis was conducted on trees with the same label sets (left) and on trees with different but overlapping label sets (right). For each k , the s- k -RF and the k -RF distance were positively correlated. The correlation values were higher when the distance values between trees with the same label set were considered. When k increased from 6 to 21, the correlation values increased when distances between trees with the same label set were used. In contrast, the values dropped when distances between trees with different but overlapping label sets were used. 4 S- k -RF D istances for L abeled DAG s Let k β₯ 0. Clearly, D G,k ( v ) in Eqn. (1), β± ( X, k ) in Eqn. (4) are well defined for DAGs. Consequently, the s- k -RF distance given in Definition 2 naturally extends to DAGs. However, this dissimilarity measure is no longer a metric in the space of DAGs. For instance, for the two distinct labeled DAGs G and in Figure 7 , we have and thus their s-2-RF score is 0. Download figure Open in new tab Fig. 7. Two rooted labeled DAGs whose refined s-2-RF score is 2. To address this issue, we redefine the s- k -RF distance by incorporating the number of paths of certain lengths between pairs of nodes into the definition. For each u β D G,k ( v ) (defined in Eqn. (1)), we define the k -reach multiplicity n ( v, u ) of u as the number of directed paths from v to u with length at most k . We then redefine the k -descendant-hood of v as: and Definition 4. For two labeled DAGs G and , the s-k-RF distance between G and is defined as: Example 1. Consider the rooted labeled DAGs given in Figure 7. The sets of 2-descendant-hoods associated with all the nodes in the two DAGs are listed below . View this table: View inline View popup Download powerpoint Therefore , contains only { a, b, c 2 , d, e, g }, whereas contains only { a, b, c 3 , d, e, g }. Therefore, the s- 2 -RF distance between G and is 2. 4.1 Mathematical Properties Lemma 3. The s-k-RF in Eqn . 8 satisfies the non-negativity, symmetry and triangle inequality conditions . Proof . The non-negativity and symmetry conditions are trivial. Setting A = β¬ ( G 1 , k ), B = β¬ ( G 2 , k ), and S = β¬ ( G 3 , k ), by Lemma 1, we obtain Observation 3. Let G be a labeled DAG and x, y β V ( G ) such that x β y. Then, if p is a directed path from x to y in G, the level of y in G is greater than the level of x in G . Lemma 4. Let G be a DAG and let S consist of the source nodes in G. For any X β S, G X denotes the DAG obtained from G by removing all nodes in X and all the edges incident to the nodes in X. Then, for each X β S and each k β₯ 1, Proof . The proof follows from the fact that a source node has an indegree of 0 and thus is not a descendant of any other node. Theorem 3. Let k β₯ 1 be an integer. The s-k-RF is a metric in the space of all labeled DAGs . Proof . By Lemma 3, we just need to show that implies that G and are identical for any two labeled DAGs G and . First, implies that . To prove the statement, we show that each V l ( G ) = { v β V ( G ) | the level of v is l } for 0 β€ l β€ depth( G ) and E ( G ) are uniquely determined by β¬ ( G, k ) using mathematical induction on n = | V ( G )|. Note that as k β₯ 1, s is a source if and only if B G,k ( s ) is the only multiset in β¬ ( G, k ) that contains s . Therefore, each source of G is uniquely determined by β¬ ( G, k ). Now, assume n = 1. Then, V ( G ) = { v } is a singleton. As G is a DAG, v is a source, E ( G ) = β
and depth( G ) = 0. Thus, V 0 ( G ) = { v } and E ( G ) are uniquely determined by B ( G, k ) = {{ v }}. Note that if n β₯ 1, E ( G ) = β
if and only if all nodes in V ( G ) are sources, if and only if for any v β V ( G ), B G,k ( v ) = { v }. Therefore, if E ( G ) = β
, then depth( G ) = 0. Additionally, V 0 ( G ) = V ( G ) and E ( G ) are uniquely determined by B ( G, k ). Thus, we may assume that E ( G ) β
. Now, let the induction statement be true for n < t β1 and | V ( G ) | = t . Assume S consists of all the source nodes in G and G β² is obtained by removing all nodes in S together with their outgoing edges from G . Then, using Lemma 4, β¬ ( G β² , k ) is uniquely constructed from β¬ ( G, k ) as the source nodes are uniquely determined. Thus, the induction assumption on n implies that E ( G β² ) and V l ( G β² ) are uniquely determined for any 0 β€ l β€ depth( G β² ). In addition, since V l ( G ) = V lβ 1 ( G β² ) for 1 β€ l β€ depth( G ) and S = V 0 ( G ) are uniquely determined, V l ( G ) is uniquely determined for 0β€ l β€ depth( G ). Now, we show that each edge ( u, v ) β E ( G ) with u β S is uniquely determined. If k = 1, ( u, v ) β E ( G ) if and only if v β B G,k ( u ). Therefore, ( u, v ) is uniquely determined. Let k β₯2. Then, we determine each edge ( u, v ) with u β S recursively as follows. If v β V 1 ( G ), there is no directed path of length greater than one from u to v . Therefore, ( u, v ) β E ( G ) if and only if v β B G,k ( u ). This implies that ( u, v ) is uniquely determined. Now, assume we have determined each ( u, v ) β E ( G ) with u β S and v β V l ( G ) for 1 β€ l β€ m β1. We then aim to determine each edge ( u, v ) with v β V m ( G ) and u β S . To do so, let P : v 0 , v 1 , β¦, v b be a directed path of length 2 β€ b β€ k , where v 0 = u, v b = v , and v 1 β u, v . Then, by Observation 3, v 1 β V l ( G ), where l < m . Thus, the edge ( v 0 , v 1 ) is uniquely determined. Additionally, for 1 β€ i β€ b 1, ( v i , v i +1 ) β E ( G β² ) is uniquely determined by the induction assumption on n . Thus, P is uniquely determined, implying that the number of directed paths of length 2 β€ k from u to v is unique to B ( G, k ). Now, assume that n ( u, v ) is the number of such paths. Then, n ( u, v ) β n β² ( u, v ) uniquely determines the edge ( u, v ). Therefore, E ( G ) = E ( G β² ) βͺ {( u, v ) β E ( G ) : u β S } is uniquely determined, which concludes the proof. Proposition 4. Let G and be two labeled DAGs. If k β₯ max { depth ( G ), depth }, then the s-k-RF distance between G and equals the s-k β² -RF distance between G and for any k β² > k . Proof . If k β₯ max{depth( G ), depth }, then D X,k ( v ) = D X ( v ) βͺ { v } for X = G , and v β V ( X ). Thus, is independent of k , implying that is the same for any k β² > k . Proposition 5. Let G and be two labeled DAGs and let and . The time complexity to compute is O ( kn ( n + m )). Proof . The proof appears in Section II, Supplementary Document. Example 2. Consider the DAGs in Figure 8 . For k = 1, 2, 3 and are listed below . Download figure Open in new tab Fig. 8. Three rooted labeled DAGs G 1 , G 2 , and G 3 . For each k = 1, 2, 3, the pairwise s- k -RF between them is equal to 2. View this table: View inline View popup Download powerpoint In addition, B X,k ( a ) for X = G 1 , G 2 , G 3 and k = 1, 2, 3 have the following values . View this table: View inline View popup Download powerpoint Consequently, for k = 1, 2, 3, d s-k-RF ( G 1 , G 2 ) = d s-k-RF ( G 1 , G 3 ) = d is-k-RF ( G 2 , G 3 ) = 2. Example 2 shows that the s- k -RF measures cannot naively capture the dissimilarity of the labeled DAGs, as we expect d s-k-RF ( G 1 , G 2 ) < d s-k-RF ( G 1 , G 3 ). In fact, when the number of redundant edges incident to the same source node in a DAG (e.g., G 1 ) varies and this is the only change to the DAG, the distance of the new DAG (e.g., G 2 or G 3 ) from the old one is always a fixed number regardless of how many edges are removed from or added to the DAG. However, the number of added or removed edges affects the number of edges. Thus, the measures are not efficiently sensitive to the changes occurring in the number of edges. This caveat motivates us to define a modified version of the measures. 5 M- k -RF D istances for labeled DAG s Let G be a labeled DAG, and k β₯ 0 be an integer. We define: where w ( v ) = 1 if v is a root, and w ( v ) = indegree( v ) otherwise. Definition 5. Let G and be two labeled DAGs . The modified k-RF (m-k-RF) distance between G and is defined as follows: Example 3. Consider DAGs in Figure 8 . Then, for each k = 1, 2, 3, β¬ β ( G 1 , k ), β¬ β ( G 2 , k ), and β¬ β ( G 3 , k ) are respectively: Thus, for any k = 1, 2, 3, we have: 5.1 Mathematical Properties Lemma 5. For three multisets A, B, and C, the following inequality holds: Proof . If x m ( x ) β AΞ m B , then x m ( x ) β A \ m B or x m ( x ) β B \ m A . Suppose x m ( x ) β A\ m B . Then, m ( x, A ) > m ( x, B ). If x β/ Supp( C \ m B ), we have m ( x, A ) > m ( x, B ) β₯ m ( x, C ). This implies that x β Supp( A \ m C ) and Thus, m ( x ) β€ m ( x, A Ξ m C ) + m ( x, C Ξ m B ). On the other hand, if x β Supp( C \ m B ) and m ( x, C ) β₯ m ( x, A ), we have: If x β Supp( C \ m B ) and m ( x, C ) m ( x, C ) > m ( x, B ), implying x β Supp( A \ m C ). Thus, we have: Lastly, if x m ( x ) β B \ m A , we can obtain the same result. In summary, we have: In addition, for each x β Supp( AΞ m B ), we have: Thus, the inequality holds. Lemma 6. Let k β₯ 0 be an integer. The m-k-RF measure satisfies the non-negativity, symmetry, and triangle inequality conditions . Proof . The non-negativity and symmetry conditions follow from the definition of the measures. For the triangle inequality, let G 1 , G 2 , and G 3 be three labeled DAGs, and let A = β¬ β ( G 1 , k ), B = β¬ β ( G 2 , k ), and C = β¬ β ( G 3 , k ). We have by Lemma 5. This implies that Consequently, we have Theorem 6. Let k β₯ 1 be an integer. The m-k-RF measure is a metric in the space of labeled DAGs . Proof Let G and be two labeled DAGs. By Lemma 6, it is enough to show that if , then G and are identical. As implies that , by the proof of Theorem 3, G and are identical. Proposition 7. Let G and be two DAGs. The time complexity to compute the modified k-RF distance between G and is O ( kn ( n + m )), where and Proof . First, note that computing indegree of nodes in G and can be done in time. Therefore, the time complexity to compute the symmetric difference of β¬ β ( G, k ) and is the same as the time complexity to compute the symmetric difference of β¬ ( G, k ) and . Therefore, the proof follows from the proof of Proposition 5. 5.2 M- k -RF Distance refines S- k -RF Distance To demonstrate that the m- k -RF distance refines the s- k -RF distances, we used a dataset consisting of 61 randomly generated labeled DAGs with 50 nodes. For k = 1, 2, 3, 4, we computed the normalized s- k -RF and normalized m- k -RF distance between one DAG and every other DAG in the dataset, where the normalized s- k -RF and normalized m- k -RF distance between two DAGs G and are defined as: and respectively. Figure 9 presents the distance values obtained by each measure between the reference DAG and every other DAG. Download figure Open in new tab Fig. 9. Comparison between s- k -RF and m- k -RF distances between a fixed labeled DAG G and every other DAG in a data set with 60 random labeled DAGs G 0 , G 1 ,β¦, G 59 for k = 1, 2, 3, 4. Each black (red) bar on index i presents d s-k-RF ( G, G i ) ( d m-k-RF ( G, G i )), where k = 1, 2, 3, 4. This figure indicates that the variability between the m- k -RF distance values is higher than between the s- k -RF distance values, revealing the fact that the m- k -RF distances could enhance the resolution of the s- k -RF distances. 5.3 Correlation between S- k -RF and M- k -RF Distance To determine how the s- k -RF distance and m- k -RF distance are related to each other, we created two datasets, containing 250 randomly generated labeled DAGs with 50 nodes each. DAGs in the first dataset had the same number of edges, whereas DAGs in the second dataset had different number of edges. We then computed the pairwise normalized s- k -RF and m- k -RF (1 β€ k β€ 7) distances between the DAGs in each dataset. The Pearson correlation between s- k -RF and m- k -RF distances are listed in Table 1 . View this table: View inline View popup Download powerpoint TABLE 1. The Pearson correlation between s- k -RF and m- k -RF distances for 1 β€ k β€ 7. The correlation analysis indicates that the s- k -RF and m- k -RF distance were positively correlated. However, the correlation coefficients for the first dataset were significantly higher than those for the second dataset. This is expected, as the m- k -RF distance more effectively captures dissimilarity caused by variability in the number of edges between DAGs. Additionally, the analysis shows that when k increased, the correlation coefficient in the first dataset increased slightly, whereas in the second dataset, it decreased with increasing k . 6 C omparison of S- k -RF and M- k -RF D is - tances with O ther DAG D istances In this section, we compare the two k -RF distances with the Generalized Kendall-tau (GKT) distance [ 23 ] and Katz dissimilarity [ 26 ] (Section III, Supplementary Document). 6.1 Correlation of S- k -RF and M- k -RF with GKT and Katz To assess how the s- k -RF distance or the m- k -RF distance correlates with the GKT distance and Katz dissimilarity, we computed the pairwise Katz dissimilarity and GKT distance between the DAGs in the second dataset used in Section 5.3. (A similar analysis on the first dataset yielded comparable results and is presented in Section V, Supplementary Document.) The Katz dissimilarity and GKT distance are both parameterized measures. We computed the Katz dissimilarity scores using parameters p = 0.5 and q = 0 or 0.3, and the GKT distances using parameters Ξ± = 0.8 or 0.4 and Ξ³ = 0.0004. The Pearson correlation coefficients between the s- k -RF distance or the m- k -RF distance and the GKT or Katz measures are shown in Figure 10 for each 1 β€ k β€ 7. The analyses suggest the following: Download figure Open in new tab Fig. 10. The Pearson correlation coefficients of s- k -RF (left) and m- k -RF (right) with the Generalized Kandall-tau distances and Katz dissimilarity under two parameter settings each. Each point ( k, y ) on a curve represents a correlation coefficient y between the corresponding GKT or Katz distance and the s- k -RF or m- k -RF distance. All correlations were positive. The correlation between the s- k -RF distance and the GKT distance was stronger than that with the Katz dissimilarity. The correlation between the m- k -RF distance and the Katz dissimilarity was stronger than that with the GKT distances. Both the GKT and Katz distances were more strongly correlated with the s-1-RF and m-1-RF distances than with the s- k -RF and m- k -RF distances for k > 1. Point (d) can be attributed to the fact that both distances are based on the dissimilarity between pairs of nodes across DAGs, which aligns more closely with the s-1-RF and m-1-RF distances as they capture dissimilarity between 1-descendant-hoods across DAGs. Each 1-descendant-hood contains a node with its children, making the measures more compatible with the structure of the GKT and Katz dissimilarities. 6.2 Clustering DAGs Using S- k -RF and Other Distances We also investigated the effectiveness of these distances in classifying DAGs. We first generated five random labeled DAGs with 50 nodes each. For each of these, we created 50 variants by deleting or reversing edges while preserving the acyclic property, resulting in five DAG families, each comprising 51 DAGs. The depth of the generated DAGs ranged from 3 to 8. Note that by Proposition 4, if k > 8, the s- k -RF score for each pair of DAGs equals its s-8-RF score. Next, we computed the s- k -RF and m- k -RF distances (1β€ k β€ 8), the GKT distance (with parameters p = 0.5 and q = 0 or 0.3), and the Katz dissimilarity (with parameters Ξ± = 0.5, 0.8, and Ξ³ = 0.0004) for every pair of DAGs within and across the five DAG families. We then applied the K -Means clustering algorithm to group the DAGs into n clusters, for n = 2, β¦, 49. The Silhouette scores [ 18 ] of clustering the DAGs into n groups for n = 2, β¦, 49 for the resulting clustering are presented in Figure 11 . Our findings include: Download figure Open in new tab Fig. 11. The Silhouette scores of K -means clustering of the labeled DAGs from five families, generated from 5 base DAGs, into n (2 β€ n β€ 49) groups under the s- k -RF distances (1 β€ k β€ 8), the GKT distance [ 23 ] (with parameters p = 0.5 and q = 0, or 0.3 and the Katz dissimilarity (wiht parameters Ξ± = 0.5, or 0.8 and Ξ³ = 0.0004). Among the s- k -RF and m- k -RF distances, only s-1-RF distance accurately determined the true number of DAG families. This is evidenced by the highest Silhouette score at n = 5 for s-1-RF distance, a result not observed for other s- k -RF measures or any m- k -RF measures. The GKT distance was another one that successfully identified the correct number. The clustering performance of the s-1-RF distance is more similar to the GKT distance. This aligns with the observation we made in our correlation analysis in Section 6.1, where the correlation of the s-1-RF distance with the GKT was higher than with the other measure. Although the m- k -RF distances indicated a stronger correlation with the GKT distance when the underlying DAGs had the same number of edges (Tables S1βS4, Section V, Supplementary Document), their clustering performance was similar to the Katz dissimilarity. This could be attributed to the existence of DAGs with different numbers of edges in the dataset. Note that according to the result from Section 6.1, the distances indicated higher correlation with Katz dissimilarity when the underlying DAGs had different numbers of edges. 7 C omparison of S- k -RF D istances and k -RF D istances on T rees with D ifferent L abel S ets Recall that the s- k -RF distance is a simplified version of the k -RF distance, customized for labeled DAGs. We compare the performance of these two distances in the space of labeled trees with different label sets. 7.1 Clustering Trees Based on Their Label Sets We first investigate the ability of the s- k -RF and k -RF distances to differentiate between multi-labeled tree families with different label sets. (The definitions of the measures extend naturally to multi-labeled DAGs and are presented in Section VI, Supplementary Document.) For this purpose, we computed pairwise k -RF and s- k -RF distances between multi-labeled trees from five families, generated using the following procedure: 20,000 rooted labeled trees were first generated using the method described in Section 3.4. Each tree contained 30 nodes, uniquely labeled with integers from 0 to 29 (i.e., the label set is {0, 1, β¦, 29}). The generated trees were then converted into multilabeled trees using the approach described in [ 16 ]. This process involves deleting a few nodes and reattaching their children to the deleted nodesβ parents. Additionally, some edges are contracted, and the label sets of the two endpoints of each contracted edge are merged and assigned to the new node. We then sampled 240 multi-labeled trees with the same label set of size 30. We grouped them into 5 families, each composed of 48 trees. Finally, we changed some labels so that trees from different families had label sets differing by only one mutation. The diameter and depth of each tree were at most 20 and 19, respectively. Therefore, for k > 19, the s- k -RF and k -RF score for each pair of trees equal its s-19-RF and 19-RF score, respectively (see Proposition 4 and Proposition 1 in [ 19 ]). The silhouette scores for clustering trees using distance values obtained by each k -RF and each s- k -RF are presented in Figure 12 for k = 1, 2, β¦, 19. Download figure Open in new tab Fig. 12. Silhouette scores of clustering 240 multi-labeled trees from five families into different number of groups under the s- k -RF and k -RF distance for k = 1, 2, β¦, 19. Trees from the same family shared the same label set, while trees from different families had label sets differing by only one label. As Figure 12 shows, neither of the s- k -RF measures could recognize the number of tree families. Furthermore, the clustering performance of the measures did not change noticeably when k increased from 1 to 19. On the other hand, the k -RF distances could recognize the number of clusters for k β₯ 12; additionally, the clustering performance improved greatly when k increased from 12 to 19. This aligns with the result in Section 3.5, where we observed that the Pearson correlation between the measures is low for k β₯ 12 when the underlying trees had different label sets. To see why the k -RF and the s- k -RF measures behave differently in the clustering experiment, we recall that for large k , the k -RF measure behaves similarly to the RF measure proposed in [ 19 ], which does not capture any similarity for trees with different label sets (Remark 1, [ 19 ]). This in turn facilitates differentiating between such trees. On the other hand, for large k , the s- k -RF distances become the RF distance (Definition 3 and Proposition 1) which can capture similarity between trees with different label sets. 7.2 Resolution of S- k -RF and k -RF Distances on Trees with Different Label Sets Although for large k ( k β₯ 12), the k -RF measure could cluster trees based on their label sets better than the s- k -RF distance, as discussed above, they cannot capture similarity of trees with different label sets well. This motivated us to compare the resolution of the k -RF measure and s- k -RF measure on trees with different label sets. For this purpose, we computed the normalized s- k -RF and normalized k -RF distance (1 β€ k β€ 4) between one reference labeled tree and any other labeled tree indexed by 0, 1, β¦, 49, where the normalized s- k -RF and normalized k -RF distance between two trees T and are respectively calculated as and . The set of trees was a subset of the dataset used in Section 3.5; additionally, all trees except the reference tree shared the same label set. Figure 13 shows the distance values obtained by each measure between the reference tree and any other tree indexed by 0, 1, β¦, 49. The figure suggests: Download figure Open in new tab Fig. 13. Comparison between s- k -RF and k -RF distances of a reference labeled tree with any other labeled tree indexed by 0, 1, β¦, 49. Each black (red) bar on index i presents the s- k -RF ( k -RF) distance between the reference tree and the tree indexed by i . The label set of the reference tree was different from any other tree, and k ranged from 1 to 4. The k -RF measure could not capture any similarity between trees in most pairs, while the s- k -RF could capture similarity between any two evaluated trees. The variability between the distance values obtained by the s- k -RF measures was much higher. This indicates that the resolution of the s- k -RF measures for trees with different label sets seems to be higher, compared to the k -RF distances. 8 D iscussions and C onclusions We proposed the s- k -RF distance for labeled rooted trees by refining the k -RF measures introduced by [ 19 ]. We further extended the s- k -RF distances to m- k -RF distances for DAGs. Note that both the s- k -RF and m- k -RF distances have been generalized to the space of multi-labeled DAGs (Section VI, Supplementary Document). Our simulation experiments indicate that the distribution of the pairwise s- k -RF distances is approximately normal in the space of rooted labeled trees with n nodes, for small n and each k β€ n β1, This behavior differs from that observed for the k -RF measure in [ 19 ]. We also conducted a correlation analysis by computing the Pearson correlation between s- k -RF measures (1β€ k β€ 21) and the three existing measures CASet β©, DISC β©, and GRF [ 11 ], [ 22 ], which are developed for comparison of cancer mutation trees. For each of the three measures, we observed that the correlation remained nearly constant across different values of k β₯ 1, in contrast to the findings of [ 19 ], which reported noticeable fluctuations as k increased (see Figure 10 in [ 19 ]). We compared the k -RF and the s- k -RF distance (1β€ k β€ 21) using a Pearson correlation. We observed that for large k , the two measures were highly correlated when the underlying trees had the same label set. However, they did not show strong correlation when the trees had different label sets. The s- k -RF and m- k -RF measures are each a metric in the space of labeled DAGs. The normalized m- k -RF measure seems to have higher resolution than the normalized s- k -RF measure on the space of labeled DAGs with the same label set. The s- k -RF and m- k -RF measures (1β€ k β€ 7) showed stronger correlation when the underlying DAGs had the same number of edges, compared to the scenario in which the DAGs had different numbers of edges. The s- k -RF distance (1 β€ k β€ 7) showed weaker correlation with the Katz dissimilarity [ 26 ] than with the GKT distance [ 23 ]. A similar pattern was observed for the m- k -RF distance when the underlying DAGs had the same number of edges. However, when the DAGs differed in the number of edges, the m- k -RF distance exhibited stronger correlation with the Katz dissimilarity than with the GKT distance. Additionally, we demonstrated that the s-1-RF distance can effectively identify the number of clusters in a DAG dataset, outperforming the Katz similarity [ 26 ] and achieving comparable performance to the GKT distance [ 23 ]. The s- k -RF measures can efficiently compare two labeled DAGs G and with different node sets; however, in order to compute the distance between such DAGs by other DAG measures, one needs to first make their node sets the same. In particular, to calculate the GKT distance between the DAGs, first some isolated nodes are added to the DAGs so that they obtain the same node set [ 23 ]. This approach can impose a high degree of dissimilarity between DAGs. This is because it induces node pairs, each with a tail and/or a head in . Clearly, if ( u, v ) is such a pair, if u and v are connected by an edge in G or and otherwise. Therefore, this strategy could overestimate the contribution of differing nodes to the distance between the DAGs. Moreover, the authors in [ 26 ] prefer to remove certain nodes from the DAGs to equalize their node sets to . However, this approach may underestimate the contribution of differing nodes to the distance between the DAGs. The k -RF measures could not capture similarity of labeled trees with different label sets well, showing a less resolution against the s- k -RF distances when comparing such trees. As such, the s- k -RF distances are more efficient in the scenarios where different labels should not contribute greatly to the distance between labeled DAGs. We proposed an algorithm to compute the m- k -RF and s- k -RF distances between two labeled DAGs. The algorithm runs in polynomial time; however, its time complexity is not directly comparable to the algorithms in [ 8 ] and [ 1 ], which are used to calculate the RF distance between phylogenetic trees and phylogenetic networks, respectively. This caveat could be justified because our algorithm has to account for distinct labels on internal nodes, whereas phylogenetic trees or networks assign the same label to all internal nodes. Furthermore, the algorithm provides greater flexibility by allowing k to vary. Future work includes investigating the application of the s- k -RF distances in comparison of cancer trees, cell trees and designs of machine learning algorithms. For example, Wang et al. [ 33 ] introduce a kernel to capture similarity between two DAGs G and for action recognition tasks. Each DAG corresponds to a video clip, where a node is a component consisting of the video trajectories corresponding to a moving body part, and there is a directed edge from component c 1 to component c 2 if the body part representing c 1 moves before the one representing c 2 . Now, one may use the Gaussian kernel empowered by the s- k -RF distance. Such a kernel could be defined as , where Ο controls the sensitivity to the distance. Furthermore, validating these measures in terms of their contribution to DAG learning methods through techniques such as bootstrap aggregation is also planned. For example, the authors in [ 35 ] use a metric to improve their model, which learns a DAG that identifies protein biomarkers for the response to treatment in ovarian cancer. Replacing the distance with the s- k -RF distance could recover its potential application in biological scenarios. In addition to the above future research plans, it is also interesting to explore the frequency distribution of the s- k -RF measures in the space of rooted labeled trees with a large number of nodes in line with the paper [ 14 ], which investigates the distribution of the k -RF measures proposed in [ 19 ]. The code to compute pairwise s- k -RF and m- k -RF distances of a set of labeled DAGs can be found in https://github.com/Elahe-khayatian/sKRF-distances.git . Elahe Khayatian received her BSc and MSc in Mathematics. She now is a PhD candidate in the Department of Mathematics at National University of Singapore. Her research interests include Computational Biology and Graph Theory. Louxin Zhang is a computational biologist. He is currently a professor in the Department of Mathematics at National University of Singapore. He is recognized for his contributions to combinatorial semigroup theory, phylogenetic trees and networks, as well spaced seeds for sequence comparison in bioinformatics. A cknowledgments The authors thank the anonymous reviewers for their insightful and constructive suggestions on the first submission. This work was partially supported by Singapore MOE Research Grant [A-8001951-00-00]. R eferences [1]. β΅ T. Asano , J. Jansson , K. Sadakane , R. Uehara , and G. Valiente , β Faster Computation of the Robinson-Foulds Distance Between Phylogenetic Networks β, Inf. Sci ., vol. 197 , pp. 77 β 90 , 2012 . OpenUrl [2]. β΅ A. Basu , β Directed Acyclic Graphs to Explore Causality in Epidemiological Study Designs, part I: an introduction to DAGs β, Qeios , 3 : 3 , 2020 . OpenUrl [3]. β΅ G. Cardona , M. LlabrΓ©s , F. RossellΓ³ , and G. Valiente , β Comparison of Tree-Child Phylogenetic Networks β, IEEE/ACM Trans. Comput. Biol. Bioinform ., vol. 6 , no. 4 , pp. 552 β 569 , 2009 . OpenUrl CrossRef PubMed [4]. β΅ G. Cardona , M. LlabrΓ©s , F. RossellΓ³ , and G. Valiente , β Metrics for Phylogenetic Networks I: Generalizations of the Robinson-Foulds Metric β, IEEE/ACM Trans Comput Biol Bioinform , vol. 6 , no. 1 , pp. 46 β 61 , 2009 . OpenUrl CrossRef PubMed [5]. β΅ G. Cardona , M. LlabrΓ©s , F. RossellΓ³ , and G. Valiente , β Metrics for Phylogenetic Networks II: Nodal and Triplets Metrics β, IEEE/ACM Trans. Comput. Biol. Bioinform ., vol. 6 , no. 3 , pp. 454 β 469 , 2009 . OpenUrl PubMed [6]. β΅ G. Cardona , M. LlabrΓ©s , F. RossellΓ³ , and G. Valiente , β On Nakhlehβs Metric for Reduced Phylogenetic Networks β, IEEE/ACM Trans. Comput. Biol. Bioinform ., vol. 6 , no. 4 , pp. 629 β 638 , 2009 . OpenUrl CrossRef PubMed [7]. β΅ F. Cheng , I.A. KovΓ‘cs , and A.L. BarabΓ‘si , 2019 . β Network-based Prediction of Drug Combinations β, Nat. Commun ., 10 ( 1 ), 1197 , 2019. OpenUrl CrossRef PubMed [8]. β΅ W.H.E. Day , β Optimal Algorithms for Comparing Trees with Labeled Leaves β, J. Classif ., vol. 2 , no. 1 , pp. 7 β 28 , 1985 . OpenUrl CrossRef Web of Science [9]. β΅ R. Diaz-Uriarte , β Cancer Progression Models and Fitness Landscapes: A Many-to-Many Relationship β, Bioinform ., vol. 34 , no. 5 , pp. 836 β 844 , 2018 . OpenUrl CrossRef PubMed [10]. β΅ R. Diaz-Uriarte and C. Vasallo , β Every Which Way? On Predicting Tumor Evolution Using Cancer Progression Models β, PLoS Comput. Biol ., vol. 15 , no. 8 , pp. e1007246 , 2019 . OpenUrl CrossRef PubMed [11]. β΅ Z. DiNardo , K. Tomlinson , A. Ritz , and L. Oesper , β Distance Measures for Tumor Evolutionary Trees β, Bioinform ., vol. 36 , no. 7 , pp. 2090 β 2097 , 2020 . OpenUrl CrossRef PubMed [12]. β΅ D. Doncevic , C. Herrmann , β Biologically Informed Variational Autoencoders Allow Predictive Modeling of Genetic and Drug-Induced Perturbations β, Bioinform ., vol. 39 , no. 6 , 2023 . [13]. β΅ M. C. Fontaine , J. B. Pease , A. Steele , et al. β Extensive Introgression in A Malaria Vector Species Complex Revealed by Phylogenomics β, Science , vol. 347 , no. 6217 , 1258524 , 2015 . OpenUrl Abstract / FREE Full Text [14]. β΅ M. Fuchs and M. Steel , β The Asymptotic Distribution of The K-Robinson-Foulds Dissimilarity Measure on Labelled Trees β, arXiv preprint , arXiv: 2412.20012 , 2024 . [15]. β΅ D. H. Huson , R. Rupp , and C. Scornavacca . Phylogenetic Networks . Cambridge, UK , 2012 . [16]. β΅ K. Jahn , N. Beerenwinkel , and L. Zhang , β The Bourque Distances for Mutation Trees of Cancers β, Algor. Mol. Biol ., vol. 16 , no. 9 , pp. 1 β 15 , 2021 . OpenUrl [17]. β΅ J. Jansson , K. Mampentzidis , R. Rajaby , and W.K. Sung , β Computing the Rooted Triplet Distance Between Phylogenetic Networks β, Algorithmica , vol. 83 , pp. 1786 β 1828 , 2021 . OpenUrl [18]. β΅ L. Kaufman and P. Rousseeuw , Finding Groups in Data: An Introduction To Cluster Analysis . John Wiley & Sons , 2009 . [19]. β΅ E. Khayatian and G. Valiente and L. Zhang , β The k-RobinsonβFoulds Dissimilarity Measures for Comparison of Labeled Trees β, J. Comput. Biol ., vol. 31 , no. 4 , pp. 328 β 344 , 2024 . OpenUrl PubMed A preliminery version appears in the Proceedings of the RECOMB-CGβ2023 , Lecture Notes in Computer Science , vol. 13883 , pp. 146 β 161 , 2023 . OpenUrl [20]. β΅ P. Lecca , N. Casiraghi , and F. Demichelis , β Defining Order and Timing of Mutations During Cancer Progression: The TO-DAG Probabilistic Graphical Model β, Front. Genet ., vol. 6 , no. 309 , 2015 . [21]. β΅ M. LlabrΓ©s , F. RossellΓ³ , and Gabriel Valiente , β A Generalized Robinson-Foulds Distance for Clonal Trees, Mutation Trees, and Phylogenetic Trees and Networks β, Proc. 11th ACM Int. Conf. Bioinform. Comput. Biol. Health Inform ., pp. 13 :1β13:10, 2020 . [22]. β΅ M. LlabrΓ©s , F. RossellΓ³ , G. Valiente , β The Generalized Robinson-Foulds Distance for Phylogenetic Trees β, J. Comput. Biol ., vol. 28 , no. 12 , pp. 1 β 15 , 2021 . OpenUrl PubMed [23]. β΅ E. Malmi , N. Tatti , and A. Gionis , β Beyond Rankings: Comparing Directed Acyclic Graphs β, Data Min Knowl Disc , no. 29 , pp. 1233 β 1257 , 2015 . [24]. β΅ M. M. Neyshabouri and J. Lagergren , β ToMExO: A Probabilistic Tree-Structured Model for Cancer Progression β, PLoS Comput. Biol ., vol. 18 , no. 12 , 2022 . [25]. β΅ L. Nakhleh , β A Metric on the Space of Reduced Phylogenetic Networks β, IEEE/ACM Trans. Comput. Biol. Bioinform ., vol. 7 , no. 2 , pp. 218 β 222 , 2010 . OpenUrl CrossRef PubMed [26]. β΅ G. Nayak , S. Dutta , D. Ajwani , P. Nicholson , and A. Sala , β Automated Assessment of Knowledge Hierarchy Evolution: Comparing Directed Acyclic Graphs β, Inform. Retr ., vol. 22 , pp. 256 β 284 , 2019 . OpenUrl [27]. β΅ J-P. Onnela , J. SaramΓ€ki , J. HyvΓΆnen , G. SzabΓ³ , D. Lazer , K. Kaski , J. KertΓ©sz , and A-L. BarabΓ‘si , β Structure and Tie Strengths in Mobile Communication Networks .β Proc. Nat. Acad. Sci ., 104 , no. 18 ( 2007 ): 7332 β 7336 . OpenUrl Abstract / FREE Full Text [28]. β΅ D. F. Robinson and L. R. Foulds , β Comparison of Phylogenetic Trees β, Math. Biosci ., vol. 53 , no. 1β2 , pp. 131 β 147 , 1981 . OpenUrl CrossRef PubMed Web of Science [29]. β΅ N. Rossi , N. Gigante , N. Vitacolonna , and C. Piazza , β A Conservative Approach for Describing Cancer Progression β, bioRxiv [Preprint] , 2022 . [30]. M. A. Steel and D. Penny , β Distributions of Tree Comparison Metrics: Some New Results β, Syst. Biol ., vol. 42 , no. 2 , pp. 126 β 141 , 1993 . OpenUrl CrossRef Web of Science [31]. β΅ T. H. Tan , J. H. Hus , and S. H. Liu , Y. F. Huang , and M. Gochoo , β Using Direct Acyclic Graphs to Enhance Skeleton-Based Action Recognition with a Linear-Map Convolution Neural Network β, Sensors , vol. 21 , no. 9 , pp. 1 β 13 , 2021 . OpenUrl [32]. β΅ J. Wang and M. Guo , β A Metric on the Space of kth-order reduced Phylogenetic Networks β, Sci. Reports , vol. 7 , pp. 1 β 10 , 2017 . OpenUrl [33]. β΅ L. Wang and H. Sahbi , β Directed Acyclic Graph Kernels for Action Recognition β, Proc. IEEE Intβl Confer. Comput. Vision , pp. 3168 β 3175 , 2013 . [34]. β΅ T. C. Williams , C. C. Bach , N. B. Matthiesen , T. B. Henriksen , and L. Gagliardi , β Directed Acyclic Graphs: A Tool for Causal Studies in Paediatrics β, Pediatr Res ., vol. 84 , no. 4 , pp. 487 β 493 , 2018 . OpenUrl CrossRef PubMed [35]. β΅ Q. Yu , S. Chowdhury , R. Wang , C.J. Huntoon , L.M. Karnitz , and S.H. Kaufmann , S.P. Gygi , M.J. Birrer , A.G. Paulovich , J. Peng , and P. Wang , β DAGBagM: Learning Directed Acyclic Graphs of Mixed Variables with an Application to Identify Protein Biomarkers for Treatment Response in Ovarian Cancer β, BMC Bioinform ., vol. 23 , no. 1 , 2022 . [36]. β΅ Y. Zinati , A. Takiddeen , and A. Emad: GRouNdGAN , β GRN-guided Simulation of Single-Cell RNA-Seq Data Using Causal Generative Adversarial Networks β, Nat. Commun ., vol. 15 , no. 1 , 2024 . View the discussion thread. Back to top Previous Next Posted July 10, 2025. Download PDF Supplementary Material Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Simple k-RF Metrics for Comparison of Labeled DAGs Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Simple k-RF Metrics for Comparison of Labeled DAGs Elahe Khayatian , Louxin Zhang bioRxiv 2025.07.07.663441; doi: https://doi.org/10.1101/2025.07.07.663441 Share This Article: Copy Citation Tools Simple k-RF Metrics for Comparison of Labeled DAGs Elahe Khayatian , Louxin Zhang bioRxiv 2025.07.07.663441; doi: https://doi.org/10.1101/2025.07.07.663441 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Evolutionary Biology Subject Areas All Articles Animal Behavior and Cognition (7618) Biochemistry (17635) Bioengineering (13859) Bioinformatics (41846) Biophysics (21401) Cancer Biology (18534) Cell Biology (25422) Clinical Trials (138) Developmental Biology (13352) Ecology (19860) Epidemiology (2067) Evolutionary Biology (24285) Genetics (15582) Genomics (22463) Immunology (17700) Microbiology (40298) Molecular Biology (17141) Neuroscience (88424) Paleontology (666) Pathology (2825) Pharmacology and Toxicology (4813) Physiology (7633) Plant Biology (15107) Scientific Communication and Education (2042) Synthetic Biology (4284) Systems Biology (9808) Zoology (2267)
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source β PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.