Next Article in Journal
Solvability of a Parametric Fractional-Order Integral Equation Using Advance Darbo G-Contraction Theorem
Previous Article in Journal
Analysis of Experimental Cross-Sections of Charge Exchange between Hydrogen Atoms and Protons Yields More Evidence of the Existence of the Second Flavor of Hydrogen Atoms
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multidimensional Dominance Drawings and Their Applications

by
Giacomo Ortali
1 and
Ioannis G. Tollis
2,*
1
Department of Electronic and Information Engineering, University of Perugia, 06123 Perugia, Italy
2
Computer Science Department, University of Crete, 70013 Heraklion, Greece
*
Author to whom correspondence should be addressed.
Submission received: 28 July 2021 / Revised: 1 November 2021 / Accepted: 10 November 2021 / Published: 24 November 2021
(This article belongs to the Section Information Sciences)

Abstract

:
In a dominance drawing Γ of a directed acyclic graph (DAG) G, a vertex v is reachable from a vertex u if, and only if all the coordinates of v are greater than or equal to the coordinates of u in Γ . Dominance drawings of DAGs are very important in many areas of research. They combine the aspect of drawing a DAG on the grid with the fact that the transitive closure of the DAG is apparently obvious by the dominance relation between grid points associated with the vertices. The smallest number d for which a given DAG G has a d-dimensional dominance drawing is called dominance drawing dimension, and it is NP-hard to compute. In this paper, we present efficient algorithms for computing dominance drawings of G with a number of dimensions respecting theoretical bounds. We first describe a simple algorithm that shows how to compute a dominance drawing of G from its compressed transitive closure. Next, we describe a more complicated algorithm, which is based on the concept of modular decomposition of G, and obtaining dominance drawings with a lower number of dimensions. Finally, we consider the concept of weak dominance, a relaxed version of the dominance, and we discuss interesting experimental results.

1. Introduction

Dominance drawings of directed acyclic graphs (DAGs) are very important in many areas of research, including graph drawing [1], computational geometry [2], and information visualization [3], even in very large databases [4], just to mention a few. They combine the aspect of drawing a DAG on the grid with the fact that the transitive closure of the DAG is apparently obvious by the dominance relation between grid points associated with the vertices. In other words, in a dominance drawing, a vertex v is reachable from a vertex u if, and only if all the coordinates of v are greater than or equal to the coordinates of u in  Γ . Notice that it is not possible to find dominance drawings in two-dimensions for most DAGs. The smallest number d for which a given DAG G has a d-dimensional dominance drawing is called a dominance drawing dimension, and it is NP-hard to compute [5]. We denote by d d ( G ) the dominance drawing dimension of G. In this paper, we present algorithms for computing a k-dimensional dominance drawing of G, where k d d ( G ) . Our algorithms are efficient and based on various decomposition techniques.
An s t -graph is a DAG with one source s and one sink t. Every DAG can be transformed into an s t -graph by adding a virtual source and connecting it to all the sources and by adding a virtual sink and connecting all the sinks to it. In this paper, we assume, without loss of generality, that every DAG is an s t -graph. Let G = ( V , E ) be an s t -graph. There are linear-time algorithms for computing two-dimensional dominance drawings of s t -graphs that are planar ( s t -planar graphs) [6]. For non-planar s t -graphs, more than two dimensions are usually required. A k-dimensional ( k 1 ) drawing of G is a drawing of G having k dimensions that we denote by D 1 , , D k . For every h [ 1 , k ] and v V , D h ( v ) is the coordinate in the dimension D h of v. In a k-dimensional dominance drawing of G, given any two vertices u , v V , D h ( u ) D h ( v ) for every h [ 1 , k ] if, and only if there exists a directed path connecting u to v in G. In this paper, we assume that every path is a directed path. Hence, from now on we omit the word “directed”.
The minimum k such that there exist a k-dimensional dominance drawing of G (its dominance dimension) is d d ( G ) . A partially ordered set (poset) is a mathematical formalization of the concept of ordering. Any partially ordered set P can be viewed as a transitive DAG. The dimension of a poset is equivalent to the dominance dimension of the corresponding s t -graph and the results obtained for s t -graphs and their dominance drawing dimension transfer directly to partial orders and their dimension, and vice versa (see [5] for a formal definition of poset and dimension of a poset). Hence, it follows that we can talk about the known results for partial orders and for s t -graphs with no distinction.
Testing whether an s t -graph has a dominance dimension of two requires linear time [7,8]. In particular, [7] gives a necessary and sufficient condition for the test, and [8] presents the linear-time algorithm. It is NP-complete to decide whether d d ( G ) is greater than or equal to 3 [5]. A linear-time algorithm that constructs two-dimensional dominance drawings of upward planar graphs is described in [2] (see also [6]). We report the above results in the following lemma:
Lemma 1.
For any s t -graph G, it is possible to decide in linear time if d d ( G ) = 2 [7,8], while it is NP-complete to decide if d d ( G ) = k for any k 3 [5]. If G is upward planar, it is possible to construct a two-dimensional dominance drawing of G in linear time [2].
Given a k-dimensional dominance drawing of a DAG G, it is possible to test the existence of a path connecting any two vertices of G in O ( k ) time. DAGs are used to represent information in databases. Computing dominance drawings of such DAGs having a low number of dimensions would be important in practice. Unfortunately, most of the existing algorithms for constructing dominance drawings require the input DAG to have specific properties, for example, to be planar, as stated in Lemma 1. For this reason, a relaxed version of dominance drawing, called weak dominance drawing, was introduced in [9]. The “if and only if” condition of dominance becomes an “if” condition in the weak dominance. This implies that the non-existence of a path between the two vertices is guaranteed by finding a dimension D for which D ( u ) > D ( v ) , but the existence of a path is not guaranteed even if D ( u ) D ( v ) for all dimensions D of Γ . Hence, there is a falsely implied path (fip) between u and v when there is no path between u and v, even though D ( u ) D ( v ) for every dimension D of Γ . The existence of fips cannot be excluded since the number of dimensions in a weak dominance drawing is typically significantly less than d d ( G ) .
Li, Hua, and Zhou considered high-dimensional weak dominance drawings in order to obtain efficient solutions to the reachability query problem [10]. Their experimental results show that their algorithms compute weak dominance drawings using few dimensions and having few fips. Extending their work, Lionakis et al. [11] showed that, for the same families of graphs considered in [10] and by using a number of dimensions similar to the one used in [10], it is possible to compute dominance drawings (i.e., 0 fips).
The technique used in [11] is similar to the one described in Section 2 of this paper. The computational time required to compute dominance drawings in [11] is still higher than the one to compute weak dominance drawings [10]. However, these results suggest that a possible direction for this line of research is to actually use directly dominance drawings instead of weak dominance drawings.
This technique is based on the concept of compressed transitive closure, which is a data structure introduced in [12] that can be used to answer any reachability query in O ( 1 ) and requires O ( k n ) space, where k is a parameter less than or equal to n.
In Section 3, we present algorithms that compute dominance drawings with a reduced number of dimensions, k, and show that k is a good upper bound of the dominance dimension number of a DAG. These algorithms are based on a clever decomposition of a DAG denoted by modular decomposition, where a module of a DAG G = ( V , E ) is a set of vertices M of the G having the same set of predecessor and successors in V \ M . We also show an interesting family of DAGs for which the number of required dimensions is reduced to a small constant.
Next, we discuss the option of using weak dominance more extensively and close our paper by presenting our conclusions and future research challenges.

2. Compressed Transitive Closure and Dominance Drawings

Let G = ( V , E ) be an s t -graph with n vertices and m edges. Two vertices u , v V are incomparable if there is no path from u to v or from v to u in G. The width of G, denoted by f, is the cardinality of the largest set U V such that, for every u , v U , u and v are incomparable. Given any s t -graph G, the following lemma describes well-known relationships between its dominance dimension d d ( G ) , number of vertices n, and width f.
Lemma 2.
Let G be an s t -graph, n be its number of vertices, and f be its width. The two following inequalities hold:
(1) 
d d ( G ) n 2 [13,14];
(2) 
d d ( G ) f [14].
Let s and t be the source and sink of G. A chain of G is an ordered set of vertices C V such that, given any two vertices u , v C , u precedes v in the order of C if, and only if there is a path from u to v in G. See, for example, Figure 1a, where C 1 = { s , v 3 , v 4 , t } and C 2 = { s , v 1 , v 2 , v 5 , v 6 , t } are two chains of G.
Definition 1.
A chain cover S c of G is a set of chains of G having the following two properties:
(a) 
S c is a partition of G \ { s , t } ;
(b) 
s and t are contained in every chain of S c .
An antichain A is a set of vertices such that any pair of vertices v , w A is incomparable. Notice that the maximum cardinality of an antichain is equivalent to the width of G. Dilworth [15] proves that the minimum number of chains needed to cover all the vertices of an s t -graph G is equivalent to the maximum cardinality of the antichain G. We have the following lemma:
Lemma 3.
Let G be an s t -graph with n vertices and let f be its width. The minimum cardinality of a chain cover of G is f [15]. Additionally, it is possible to compute a chain cover of G with cardinality f in O ( f n 2 ) time [16].
See Figure 1a, where S c = { C 1 , C 2 } is a chain cover of graph G. Since f = | S c | = 2 , by Lemma 3 S c is a chain cover of G with minimum cardinality.
For the rest of this paper, we assume that G = ( V , E ) is an s t -graph and we denote by n, m, and f the number of vertices, the number of edges, and the width of G, respectively. By Inequality (2) of Lemma 2, we have d d ( G ) f . In this section, we present a simple and efficient algorithm to compute an f-dimensional dominance drawing of G. We first show how to compute a data structure called the compressed transitive closure of G [12], and then we show that this data structure can be easily used to obtain a dominance drawing.
The compressed transitive closure was presented in [12]. Given a chain cover of G of size k, the compressed transitive closure is a set of n arrays of size k, each one associated to a vertex of G. The compressed transitive closure is an efficient tool for answering reachability queries that has low storage requirements and, as we are going to show later, it can be computed in O ( k m ) time if a chain cover S c is given as an input, where k is the cardinality of S c .
As we are going to observe later, the compressed transitive closure can answer any reachability query in O ( 1 ) time, and not O ( k ) . Similarly, the dominance drawing described in this section can be used to answer any reachability query in O ( 1 ) time. We show that if we see every array of the compressed transitive closure as the coordinates of the corresponding vertex of G in an k-dimensional drawing Γ of G, then drawing Γ is a dominance drawing of G.
Given a chain cover S c of cardinality k, computing the compressed transitive closure requires O ( k m ) time. Since computing S c having cardinality f requires O ( f n 2 ) time by Lemma 3, we have that it is possible to compute an f-dimensional dominance drawing of any DAG G in O ( f n 2 ) time. To the best of our knowledge, this is the first polynomial-time algorithm to compute a dominance drawing of G in f dimensions.
Let S c = { C 1 , , C k } be a chain cover of G. As we said before, we show that the compressed transitive closure of G given S c can be seen as a k-dimensional dominance drawing of G. Before defining the compressed transitive closure, we introduce some notation. By Property (a) of a chain cover, each vertex v of G \ { s , t } belongs to exactly one chain, say C i , of S c . We denote v by ( i , j ) meaning that v is the jth vertex of chain C i S c . A similar notation is also used in [12,16]. By Property (b) of a chain cover, s and t belong to every chain of S c , and we define s = ( i , 0 ) and t = ( i , | C i | ) for every i [ 1 , k ] . An example is shown in Figure 1a. According to this notation, we have: v 1 = ( 2 , 1 ) ; v 2 = ( 2 , 2 ) ; v 3 = ( 1 , 1 ) ; v 4 = ( 1 , 2 ) ; v 5 = ( 2 , 3 ) ; v 6 = ( 2 , 4 ) ; s = ( 1 , 0 ) = ( 2 , 0 ) ; t = ( 2 , 5 ) = ( 1 , 3 ) .
As we said before, the compressed transitive closure of G given a chain cover S c = { C 1 , , C k } of G is a data structure that can answer any reachability query in O ( 1 ) time that can be computed in O ( k m ) time and that requires O ( k n ) space. More precisely, it is a set of n arrays of integers of size k so that every vertex u of G is assigned to the reachability array A u , and the following property holds:
Property 1
(Reachability Property [12]). Let u be any vertex of G and A u be its reachability array. For any vertex v = ( p , q ) of G there exists a directed path from u to v if, and only if A u [ p ] q .
In other words, vertex u = ( p , A u [ p ] ) is the vertex having the lowest position in C p so that there is a path from u to u . Consequently, there is a path from u to a vertex v C p if, and only if the position q of v = ( p , q ) in C p is not lower than the position A u [ p ] of u in C p . Notice that if u = v , then the directed path exists and it is the empty path and, consequently, u = ( p , q ) = ( p , A u [ p ] ) .
Figure 1b shows the compressed transitive closure of G given the chain cover S c = { C 1 , C 2 } shown in Figure 1a. Concerning s and t, we have: s = ( 1 , 0 ) = ( 2 , 0 ) and A s [ 1 ] = A s [ 2 ] = 0 ; t = ( 1 , 3 ) = ( 2 , 5 ) , A t [ 1 ] = 3 , and A t [ 2 ] = 5 . Regarding the other vertices, for example, vertex v 1 , we have v 1 = ( 2 , 1 ) and A v 1 [ 2 ] = 1 . Vertex v 4 is the vertex having the lowest position in C 1 so that there exists a directed path π = { ( v 1 , v 2 ) , ( v 2 , v 4 ) } from v 1 to v 4 . Additionally, v 4 = ( 1 , 2 ) . The value in position 1 of the reachability array of v 1 equals the position of v 4 in C 1 and, consequently, A v 1 [ 1 ] = 2 .
We now present the algorithm to compute the compressed transitive closure [12]. The input is an s t -graph G = ( V , E ) and a chain cover S c = { C 1 , , C k } of G. The output is the reachability array A u for every u V , that is, the compressed transitive closure of G given S c . The Algorithm 1 has two steps: the Initialization and the Update.
Algorithm 1 Compressed transitive closure computation.
Input: An s t -graph G = ( V , E ) and a chain cover S c = { C 1 , , C k } of G
Output: The array A v for every v V .
  • Initialization: For any u = ( i , j ) G and h [ 1 , k ] : If h = i , v given as A u [ h ] = v ; else,  A u [ h ] = t , where t is the sink of G.
  • Update: Compute a topological order T of G. For every l = n , , 1 :
  • Let u = ( i , j ) be the vertex so that T ( u ) = l ;
  • Let u 1 , , u c be the vertices so that ( u , w ) E for any w { u 1 , , u c } ;
  • For every w { u 1 , , u c } and every h [ 1 , k ] : A u [ h ] = min { A u [ h ] , A w [ h ] } .
Observe that the above algorithm requires O ( k n ) time, since, for every vertex of the graph, you compute k operations. See the Step Update 3. We now show that if we use the reachability array A u as the coordinates of u in a k-dimensional drawing of G for every vertex u, then we obtain a dominance drawing. See Algorithm 2.
Algorithm 2 CC-Draw (Chain Cover Draw).
Input: An s t -graph G = ( V , E ) and a chain cover S c = { C 1 , , C k } of G
Output: A k-dimensional drawing Γ of G.
• Compute the compressed transitive closure of G given S c .
• Compute k-dimensional drawing Γ of G having dimensions D 1 , , D k such that, for every h [ 1 , k ] and for every u V , D h ( u ) = A u [ h ] .
We denote by Γ ( G , S c ) the output of Algorithm 1 when G and S c are given to the algorithm as an input. Refer to Figure 1. Figure 1c depicts the two-dimensional dominance drawing of G computed by using the chain cover S c = { C 1 , C 2 } depicted in Figure 1a. The compressed transitive closure of G given S c is depicted in Figure 1b. For example, A v 3 = [ 1 , 3 ] and, consequently, D 1 ( v 3 ) = 1 and D 2 ( v 3 ) = 3 .
Two vertices are placed in the same position in Γ ( G , S c ) if D h ( u ) = D h ( v ) for every h [ 1 , k ] . In a drawing of a graph, two distinct vertices are never placed in the same position by definition. The following lemma shows that two vertices are never placed in the same position in Γ ( G , S c ) and that, consequently, Γ ( G , S c ) is a drawing of G.
Lemma 4.
Let S c be a chain cover of G and let u and v be any two distinct vertices of G. Vertices u and v are not placed in the same position in Γ ( G , S c ) .
Proof. 
Let S c = { C 1 , , C l } , u = ( i , j ) , and v = ( p , q ) . Suppose first that u and v belong to the same chain, that is, p = i . In this case, u = ( i , j ) and v = ( i , q ) . In addition, j q since u and v are two distinct vertices. We have D i ( u ) = A u [ i ] = j and D i ( v ) = A v [ i ] = q . It follows that D i ( u ) D i ( v ) and that, consequently, u and v are not placed in the same position in Γ ( G , S c ) . Suppose that u and v belong to two distinct chains, that is, p i . We have D i ( u ) = A u [ i ] = j , D p ( u ) = A u [ p ] and D i ( v ) = A v [ i ] , D p ( v ) = A v [ p ] = q . Consider the two vertices u = ( p , A u [ p ] ) and v = ( i , A v [ i ] ) . Suppose by contradiction that the vertices u and v are placed in the same position in Γ ( G , S c ) . In this case, D i ( u ) = D i ( v ) and D p ( u ) = D p ( v ) and, consequently, j = A v [ i ] and A u [ p ] = q . Hence, u = ( p , A u [ p ] ) = ( p , q ) = v and v = ( i , A v [ i ] ) = ( i , j ) = u . By the Reachability Property, u and v are the vertices having the lowest position in C p and C i so that there exist a directed path from u to u and from v to v , respectively. Since u = v and v = u , it follows that there is a path connecting v to u and there is another path connecting u to v. It implies that there must be a cycle that contains v and u in G, which is a contradiction. It follows that u and v are not placed in the same position in Γ ( G , S c ) .    □
Notice that if u and v were placed in the same position, not only Γ ( G , S c ) could not be considered a drawing of G, but also Γ ( G , S c ) would not have the property of a dominance drawing. Indeed, in this case D h ( u ) D h ( v ) and D h ( v ) D h ( u ) for every h [ 1 , k ] and, consequently, the property of the dominance drawing would imply the existence of a path from u to v and a path from v to u and, consequently, the existence of a cycle in G.
The following theorem shows that drawing Γ ( G , S c ) is a dominance drawing of G and that it can be computed in O ( k m ) time.
Theorem 1.
Let G be an s t -graph with n vertices and m edges and S c = { C 1 , , C k } be a chain cover of G. We have that Γ ( G , S c ) is a k-dimensional dominance drawing of G. Additionally, given a chain cover S c , Γ ( G , S c ) can be computed in O ( k m ) time.
Proof. 
The fact that computing Γ ( G , S c ) requires O ( k m ) time is a direct consequence of the fact that given S c as input, the compressed transitive closure of G given S c can be computed in O ( k m ) [12]. We now prove that Γ ( G , S c ) is a k-dimensional dominance drawing of G. Let u = ( i , j ) and v = ( p , q ) be any two distict vertices of G. By Lemma 4u and v are not placed in the same position in Γ ( G , S c ) . We prove that D h ( u ) D h ( v ) for every h [ 1 , k ] if, and only if there is a path connecting u to v. If D h ( u ) D h ( v ) for every h [ 1 , k ] , then D p ( u ) D p ( v ) . Since D p ( u ) = A u [ p ] and D p ( v ) = A v [ p ] = q , we have A u [ p ] q and, by the Reachability Property, there is a directed path from u to v. It remains to show that if there exists a directed path from u to v then D h ( u ) D h ( v ) for every h [ 1 , k ] . Suppose by contradiction that there exist h [ 1 , k ] so that D h ( u ) > D h ( v ) . Since D h ( v ) = A v [ h ] and D h ( u ) = A u [ h ] , we have A v [ h ] < A u [ h ] . We denote by v the vertex ( h , A v [ h ] ) . Note that by the Reachability Property there is a path connecting v to  v . Since by hypothesis there is a path from u to v, there is a path connecting u to v . On the other hand, since A v [ h ] < A u [ h ] , by the Reachability Property we have that there is no path from u to v . A contradiction. Hence, D h ( u ) D h ( v ) for every h [ 1 , k ] .    □
By Lemma 3 computing S c = { C 1 , , C k } so that f = k requires O ( f n 2 ) time. Hence, the following theorem is a consequence of Lemma 3 and Theorem 1.
Theorem 2.
Let G be an s t -graph with n vertices and m edges and let f be its width. It is possible to compute an f-dimensional dominance drawing of G in O ( f n 2 ) time.

3. Transitive Modules and Dominance Drawings

Let G be an s t -graph. In this section, we first discuss the concept of transitive module of G, which is a module of the transitive graph of G. Second, we present Lemma 5, which shows a bound for d d ( G ) not higher than the bounds of Lemma 2. In Section 3.1 we present an algorithm computing dominance drawings respecting the bound of Lemma 5 and in Section 3.2 we discuss its time complexity. The algorithm of Section 2 is simpler than the one described in Section 3.1. On the other hand, as we show in Section 3.3, there exists graph for which the dominance drawings computed by the algorithm of Section 3.1 have O ( n ) less dimensions with respect to the dominance drawings computed by the algorithm of Section 2.
A module M of G is a non-empty subset of V such that either | M | = 1 or, for any two vertices v 1 , v 2 M and any vertex u V \ M : ( v 1 , u ) E if, and only if ( v 2 , u ) E ; ( u , v 1 ) E if, and only if ( u , v 2 ) E . The congruence partition C P of V is a partition of V into modules. The quotient graph G / C P is the graph obtained from G by merging the nodes of each module of C P . For a given module M C P , we denote by μ the vertex representing M in G / C P . Figure 2a shows an s t -graph G and a congruence partition C P = { M 1 , , M 14 } of it. Figure 2b shows the quotient graph G / C P .
In this paper, we use the concept of transitive module, transitive congruence partition, and transitive quotient graph of G, defined as a module, a congruence partition, and a quotient graph of the transitive closure graph G * of G. This concept is also used in [17], but there they simply call “module” a transitive module.
Formally, a transitive module M * of G is a non-empty subset of V such that either | M * | = 1 or, for any two vertices v 1 , v 2 M * and any vertex u V \ M * : there is a path connecting v 1 to u if, and only if there is a path connecting v 2 to u; there is a path connecting u to v 1 if, and only if there is a path connecting u to v 2 . A transitive congruence partition C P * of G is a partition of G into transitive modules. The transitive quotient graph G / C P * is the graph obtained from G by merging the nodes of each transitive module of C P * . For a given module M * C P * , we denote by μ * the vertex representing M * in G / C P * .
Notice that every module of G is also a transitive module of G. Hence, the concepts of transitive module, transitive congruence partition, and transitive quotient graphs are a generalization of the concept of module, congruence partition, and quotient graph. For the rest of the paper, since we are going to talk only about transitive modules, transitive congruence partition, and transitive quotient graph, we will omit the symbol “ * ” in the notation in order to simplify our presentation. Figure 2c shows the s t -graph G depicted in Figure 2a and a transitive congruence partition C P = { M 1 , M 2 , M 3 , M 4 } of G that is not a congruence partition. Figure 2d shows the transitive quotient graph G / C P .
The modular decomposition of G is a tree describing a decomposition of G based into modules of G. The root of the tree is the module M = V , containing all the vertices of G, and the leaves of the tree are the singleton modules, where every singleton contains a vertex of G. The children of every non-leaf node M of the tree are the module of G contained in M and that are not contained in any other module contained in M.
The modular decomposition can be computed in O ( m ) time and it requires O ( n ) time to obtain a congruence partition and the correspondent quotient graph of G from a modular decomposition of G. For further details about modular decomposition see [18]. Computing a transitive congruence partition of G requires O ( n m ) time, since we can obtain it by computing a congruence partition of the transitive closure graph of G.
Let C P = { M 1 , , M h } be a transitive modular decomposition of G and let G i = ( M i , E i ) , where E i is the subset of edges of E that are incident to two vertices of M i . The congruence dimension of G given C P is the value c d ( G , C P ) = m a x { d d ( G 1 ) , , d d ( G h ) , d d ( G / C P ) } . Since each G i is a subgraph of G and G / C P is obtained from G, one might consider that d d ( G ) c d ( G , C P ) . In [19] it is proved that c d ( G , C P ) is an upper bound to d d ( G ) .
Lemma 5.
For every s t -graph G and any transitive congruence partition C P of G, the following relation holds: d d ( G ) c d ( G , C P ) [19].
For example, refer to Figure 2c, that depicts a graph G and its transitive congruence partition C P = { M 1 , M 2 , M 3 , M 4 } . We have that G / C P , G 1 , G 3 , and G 4 are upward planar and that G 2 has width equal to 2. Hence, by Lemma 1 and Inequality (2) of Lemma 2, d d ( G i ) 2 for every i 1 , 4 and d d ( G / C P ) 2 . Hence, c d ( G , C P ) = m a x { d d ( G 1 ) , , d d ( G 4 ) , d d ( G / C P ) } 2 and, by Lemma 5, d d ( G ) 2 . Since G does not contain a Hamiltonian path, d d ( G ) > 1 . It follows that d d ( G ) = 2 . Figure 4b shows a two-dimensional dominance drawing of G.
In Section 3.1 we show an algorithm to compute dominance drawings with the bound stated in Lemma 5. More formally, we describe an algorithm to compute a dominance drawing Γ ( G , S d d ) of any s t -graph G having q = c d ( G , C P ) dimensions given the set of a q-dimensional dominance drawing S d d = { Γ 0 , Γ 1 , , Γ h } of the graphs G 0 , G 1 , , G h associated to a transitive congruence partition C P of G, where G 0 = G / C P . In Section 3.2 we discuss the time complexity of the algorithm.

3.1. Algorithm 2 (Proof of Lemma 5)

Let C P = { M 1 , , M h } be a transitive congruence partition of G. Assume that, for any two vertices u and v so that u M j and v M i , if there is a path connecting u to v in G, then j i . It is possible to compute a labeling so that the above propriety holds by: Computing a topological sorting T of the vertices of the s t -graph G / C P (which is the quotient graph); setting i equal to the topological number of μ i , T ( μ i ) , for any transitive module M i C P . Note that the two transitive congruence partitions depicted in Figure 2a,c (where the one of (a) is also a congruence partition) have a labeling with this property.
We denote graph G / C P by G 0 = ( V 0 , E 0 ) . Let S d d = { Γ 0 , Γ 1 , , Γ h } be an ordered set of q-dimensional dominance drawings so that, for every i [ 1 , h ] , Γ i is a q-dimensional dominance drawing of G i . We prove that given S d d , it is possible to obtain a q-dimensional dominance drawing of G. Then, since d d ( G i ) c d ( G , C P ) for every i [ 0 , h ] by definition of congruence dimension, the proof of Lemma 5 is a direct consequence of the fact that it is possible to set q = c d ( G , C P ) . See, for example, Figure 3 that depicts the drawings Γ 0 , , Γ 4 for the graph depicted in Figure 2c with transitive congruence partition C P = { M 1 , , M 4 } . The transitive quotient graph G 0 is depicted in Figure 2d.
Notice that, given any dominance drawing Γ of G with q < q dimensions of a graph, it is possible to obtain a dominance drawing with q dimensions of the graph by adding to Γ q q dimensions and by assigning to all the vertices of G the same position in the new dimensions. Hence, the assumption that all the drawings in the set S d d have the same number of dimensions, q, is without loss of generality.
We now show Algorithm 3, which computes a q-dimensional dominance drawing Γ ( G , S d d ) of G. The algorithm consists of two steps, presented in detail in Section 3.1.1 and Section 3.1.2. We now give an overview of the algorithm.
Algorithm 3 CP-Draw (Congruence Partition Draw).
Input: An s t -graph G = ( V , E ) and S d d = { Γ 0 , Γ 1 , , Γ h }
Output: A h-dimensional drawing Γ ( G , S d d ) of G.
Step 1: Compute a q-dimensional drawing Γ ¯ 0 of G 0 (different from Γ 0 ) having dimensions D ¯ 1 0 , , D ¯ q 0 (see Figure 4a). We denote Γ ¯ 0 by skeleton drawing (see details in Section 3.1.1).
Step 2: Compute a drawing Γ ( G , S d d ) (see Figure 4b) by using, for every vertex v M i , the coordinates of μ i in the skeleton drawing Γ ¯ 0 and of v in Γ i in order to set the coordinates of v in Γ ( G , S d d ) (see details in Section 3.1.2).
In Section 3.1.2 we prove that Γ ( G , S d d ) is a q-dimensional dominance drawing.

3.1.1. Details of Step 1 of Algorithm 2: Preparing the Skeleton Drawing Γ ¯ 0

We first introduce some notation. Let D p i be the p t h dimension in drawing Γ i S d d and m a x p i a number so that D p i ( v ) m a x p i for every v G i , where i [ 1 , h ] and p [ 1 , q ] . For every μ i G 0 , we define the set U p i to be the subset of V 0 so that, for any μ j V 0 , μ j U p i if, and only if one of the two following cases holds: ( α ) D p 0 ( μ j ) < D p 0 ( μ i ) ; ( β ) D p 0 ( μ j ) = D p 0 ( μ i ) and j < i (i.e., μ j is not reachable from μ i according to the labeling defined at the beginning of the section). Notice that the two cases never hold for μ i and that, consequently, μ i U p i . Let s h i f t p i = μ j U p i m a x p j .
Refer to Figure 3 for an example of the notation m a x p i , U p i , and s h i f t p i defined above. The values s h i f t 1 i , for i [ 1 , 4 ] , are computed as follow.
  • i = 1: U 1 1 = , since neither Case ( α ) nor Case ( β ) holds for μ 2 , μ 3 , and μ 4 . Hence, s h i f t 1 1 = μ j U 1 1 m a x 1 j = 0 .
  • i = 2: U 1 2 = { μ 1 } , since Case ( α ) holds for μ 1 and neither Case ( α ) nor Case ( β ) holds for vertices μ 3 and μ 4 . Hence, s h i f t 1 2 = μ j U 1 2 m a x 1 j = m a x 1 1 = 1 .
  • i = 3: U 1 3 = { μ 1 , μ 2 } , since Case ( α ) holds for μ 1 and μ 2 and neither Case ( α ) nor Case ( β ) holds for vertex μ 4 . Hence, s h i f t 1 3 = μ j U 1 3 m a x 1 j = m a x 1 1 + m a x 1 2 = 1 + 3 = 4 .
  • i = 4: U 1 4 = { μ 1 , μ 2 , μ 3 } , since Case ( α ) holds for μ 1 and μ 2 and Case ( β ) holds for μ 3 .
    Hence, s h i f t 1 4 = μ j U 1 4 m a x 1 j = m a x 1 1 + m a x 1 2 + m a x 1 3 = 1 + 3 + 2 = 6 .
Let Γ ¯ 0 be a q-dimensional drawing of G 0 having dimensions D ¯ 1 0 , , D ¯ h 0 so that, for every i [ 1 , h ] and every p [ 1 , q ] , D ¯ p 0 ( μ i ) = D p 0 ( μ i ) + s h i f t p i .
Refer to Figure 4a that depicts the drawing Γ ¯ 0 given Γ 0 , Γ 1 , Γ 2 , Γ 3 , Γ 4 of Figure 3. Consider dimension D ¯ 1 0 . Recall that s h i f t 1 1 = 0 , s h i f t 1 2 = 1 , s h i f t 1 3 = 4 and s h i f t 1 4 = 6 , as showed in the illustration of Figure 3 above. We have: D ¯ 1 0 ( μ 1 ) = D 1 0 ( μ 1 ) + s h i f t 1 1 = 0 ; D ¯ 1 0 ( μ 2 ) = D 1 0 ( μ 2 ) + s h i f t 1 2 = 1 + 1 = 2 ; D ¯ 1 0 ( μ 3 ) = D 1 0 ( μ 3 ) + s h i f t 1 3 = 2 + 4 = 6 ; D ¯ 1 0 ( μ 4 ) = D 1 0 ( μ 4 ) + s h i f t 1 4 = 2 + 6 = 8 .

3.1.2. Details of Step 2 of Algorithm 2: Computing a Dominance Drawing Γ ( G , S d d ) of G

We construct a q-dimensional drawing Γ ( G , S d d ) of G having dimensions D 1 , , D q as follows: For every vertex v G , where v M i , and for every p [ 1 , q ] , we set D p ( v ) = D ¯ p 0 ( μ i ) + D p i ( v ) .
Refer to Figure 4b that depicts the drawing Γ ( G , S d d ) given Γ 0 , Γ 1 , Γ 2 , Γ 3 , Γ 4 of Figure 3 and Γ ¯ 0 of Figure 4a. Consider dimension D 1 and vertices a M 1 , b M 2 , c M 3 , and d M 4 , also depicted in Figure 3. We have: D 1 ( a ) = D ¯ 1 0 ( μ 1 ) + D 1 1 ( a ) = 0 + 1 = 1 ; D 1 ( b ) = D ¯ 1 0 ( μ 2 ) + D 1 2 ( b ) = 2 + 2 = 4 ; D 1 ( c ) = D ¯ 1 0 ( μ 3 ) + D 1 3 ( c ) = 6 + 1 = 7 ; D 1 ( d ) = D ¯ 1 0 ( μ 4 ) + D 1 4 ( d ) = 8 + 1 = 9 ;
Figure 4. (a) The skeleton drawing Γ ¯ 0 given S d d = { Γ 0 , , Γ 4 } , where drawings Γ 0 , , Γ 4 are depicted in Figure 3. (b) The correspondent drawing Γ ( G , S d d ) .
Figure 4. (a) The skeleton drawing Γ ¯ 0 given S d d = { Γ 0 , , Γ 4 } , where drawings Γ 0 , , Γ 4 are depicted in Figure 3. (b) The correspondent drawing Γ ( G , S d d ) .
Foundations 01 00020 g004
Notice that, since q can be equal to c d ( G , C P ) and since Γ ( G , S d d ) is a q-dimensional drawing of G, in order to prove Lemma 5 it is sufficient to show that drawing Γ ( G , S d d ) is a dominance drawing of G.
Let u and v be two vertices of G. We prove that there is a path connecting u to v if, and only if D p ( u ) D p ( v ) for every p [ 1 , q ] . Suppose u M j and v M i , where j , i [ 1 , h ] . We distinguish two cases. In the first case u and v belong to the same transitive module, that is, i = j , and in the second case u and v belong to two different transitive modules, that is, i j .
In the first case, i = j , since Γ i is a dominance drawing, we have that there is a path connecting u to v if, and only if D p i ( u ) D p i ( u ) for every p [ 1 , q ] . We also have that, for every p [ 1 , q ] , D p i ( u ) D p i ( u ) implies D p ( u ) D p ( u ) since D p ( u ) = c + D p i ( u ) and D p ( v ) = c + D p i ( v ) , where c = D ¯ p 0 ( μ i ) . Hence, there is a path connecting u to v if, and only if D p ( u ) D p for every p [ 1 , q ] .
For the rest of the proof we consider the second case, that is, i j . Suppose that there is a path connecting u to v in G. We prove that D p ( u ) D p ( v ) for every p [ 1 , q ] . Observe that a path from u to v always implies a path from μ j to μ i in G 0 and, since Γ 0 is a dominance drawing of G 0 , we have the following relation:
D p 0 ( μ j ) D p 0 ( μ i ) .
Since there is a path from μ j to μ i then, according to the labeling of the transitive modules based on the topological ordering of G 0 introduced at the beginning of the section, we have j < i . Relation (1) implies U p j U p i . By Relation (1) and j < i we have that either Case ( α ) or Case ( β ) holds for μ j and that μ j U p i . Hence, U p j { μ j } U p i and consequently we have the following relation:
s h i f t p j + m a x p j s h i f t p i .
We have D p ( u ) = D ¯ p 0 ( μ j ) + D p j ( u ) = D p 0 ( μ j ) + s h i f t p j + D p j ( u ) D p 0 ( μ j ) + s h i f t p j + m a x p j , since m a x p j is by definition the maximum value of a coordinate in the p t h dimension of drawing Γ j . By Relation (1) D p 0 ( μ j ) + s h i f t p j + m a x p j D p 0 ( μ i ) + s h i f t p j + m a x p j . By Relation (2) D p 0 ( μ i ) + s h i f t p j + m a x p j D p 0 ( μ i ) + s h i f t p i . Hence, D p ( u ) D p 0 ( μ i ) + s h i f t p i = D ¯ p 0 ( μ i ) D ¯ p 0 ( μ i ) + D p 0 ( v ) = D p ( v ) . This implies that D p ( u ) D p ( v ) for every p [ 1 , q ] .
Suppose that D p ( u ) D p ( v ) for every p [ 1 , q ] . We prove that there is a path connecting u to v in G. We first prove the following claim.
Claim 1.
Let u and v be two vertices of G so that u M j and v M i . For any p [ 1 , q ] , if D p ( u ) D p ( v ) then D p 0 ( μ j ) D p 0 ( μ i ) .
Proof. 
We have D p ( u ) = D ¯ p 0 ( μ j ) + D p j ( u ) = D p 0 ( μ j ) + s h i f t p j + D p j ( u ) and D p ( v ) = D ¯ p 0 ( μ i ) + D p i ( v ) = D p 0 ( μ i ) + s h i f t p i + D p i ( v ) . Hence, since D p ( u ) D p ( v ) , D p 0 ( μ j ) + s h i f t p j + D p j ( u ) D p 0 ( μ i ) + s h i f t p i + D p i ( v ) . Therefore, we have the following relation:
D p 0 ( μ j ) + s h i f t p j s h i f t p i + D p j ( u ) D p 0 ( μ i ) + D p i ( v ) .
Suppose for a contradiction that D p 0 ( μ j ) > D p 0 ( μ i ) . It implies U p i U p j . Additionally, it implies that Case ( α ) holds for μ i and that μ i U p j . We have U p i { μ i } U p j and consequently s h i f t p i + m a x p i s h i f t p j . It follows that:
m a x p i s h i f t p j s h i f t p i
Substituting in Relation (3) the result of Relation (4) we have D p 0 ( μ j ) + m a x p i + D p j ( u ) D p 0 ( μ i ) + D p i ( v ) . Since D p i ( v ) m a x p i , we have D p 0 ( μ j ) + m a x p i + D p j ( u ) D p 0 ( μ i ) + m a x p i . It follows that D p 0 ( μ j ) + D p j ( u ) D p 0 ( μ i ) and, consequently, D p 0 ( μ j ) D p 0 ( μ i ) , which is a contradiction. It follows that D p 0 ( μ j ) D p 0 ( μ i ) . □
In order to conclude the proof of Lemma 5 we present the following argument. Since by hypothesis D p ( u ) D p ( v ) for every p [ 1 , q ] , by Lemma 1 D p 0 ( μ j ) D p 0 ( μ i ) for every p [ 1 , q ] . Since Γ 0 is a dominance drawing of G 0 by hypothesis and since D p 0 ( μ j ) D p 0 ( μ i ) for every p [ 1 , q ] , then there is a path connecting μ j to μ i in G 0 . Therefore, there is a path connecting any vertex of M j to any vertex of M i in G and, consequently, there is a path connecting u to v in G.
We proved that for any two vertices u and v of G we have that there is a path from u to v if, and only if D p ( u ) D p ( v ) for every p [ 1 , q ] . Hence, drawing Γ ( G , S d d ) is a q-dimensional dominance drawing of G. Since q is equal to c d ( G , C P ) .

3.2. Complexity Analysis

In the previous section we showed an algorithm to compute dominance drawing with the bound stated in Lemma 5. In this section we do a worst-case analysis of the time complexity required to compute the dominance drawing Γ ( G , S d d ) .
Denote by O ( t 1 ) the time required to compute the transitive congruence partition C P of G and by O ( t 2 ) the time required to compute the set of q-dimensional dominance drawings S d d = { Γ 0 , Γ 1 , , Γ h } of graphs G 0 , G 1 , , G h . Given S d d , it is possible to compute the values m a x p i and s h i f t p i for every p [ 1 , q ] and every i [ 1 , h ] in overall O ( q n ) time. Hence, the time required to compute Γ ( S d d ) is O ( t 1 + t 2 + q n ) . Therefore, we have the following theorem:
Theorem 3.
Let G be any s t -graph and let C P be a transitive congruence partition. Let O ( t 1 ) be the time to compute C P and O ( t 2 ) be the time to compute the set of q-dimensional dominance drawings S d d = { Γ 0 , Γ 1 , , Γ h } , where q = c d ( G , C P ) . Then, it is possible to compute a q-dimensional dominance drawing of G in O ( t 1 + t 2 + q n ) time.
We now give examples of possible values of t 1 and t 2 . Recall that computing a congruence partition requires O ( m ) [18]. It is possible to compute a transitive congruence partition C P in O ( n m ) by computing a congruence partition of the transitive closure graph of G. Hence, it is possible to have t 1 = n m . Let f i be the width of G i for every i [ 0 , h ] . If we compute the drawings Γ 0 , Γ 1 , , Γ h by using the algorithm described in Section 2, then, by Theorem 2, t 2 = f n 2 , where f = m a x { f 0 , , f h } . Notice that f f and that, in this case, by the theorem, it is possible to compute an f -dimensional dominance drawing. We have t 2 = n if all the graphs G 0 , G 1 , , G h are upward planar [2]. We summarize the result for the special cases described in the above paragraph with the following corollary.
Corollary 1.
It is possible to compute a f -dimensional dominance drawing of G in O ( n m + f n 2 ) time, where f f .

3.3. A Comparison between the Algorithms

In this section we show that by using the algorithm described in this section it is possible to compute dominance drawing with O ( n ) less dimensions with respect to the ones that we can compute by using the algorithm in Section 2.
Let H be an s t -graph with n vertices, source s, sink t, and having a transitive congruence partition C P = { M 1 , , M h } , where: M 1 = { s } ; for i [ 2 , h 2 ] , H i is a 3 × 3 crown graph; H h 1 is a set containing O ( n ) incomparable vertices. See Figure 5a, where h = 4 .
Let f be the width of H. We have f = O ( n ) , since M h 1 is a set containing O ( n ) incomparable vertices. Additionally, it is well known that the 3 × 3 crown graph has dominance dimension higher than 2, see for example [9]. Therefore, d d ( H i ) > 2 for every i [ 2 , h 2 ] and d d ( H ) > 2 . According to Lemmas 1 and 2 the best-known upper bound for d d ( H ) is n 2 .
The graphs H 0 , H 1 , H h 1 , H h , where H 0 = H / C P , are upward planar. Hence, d d ( H i ) = 2 for every i { 0 , 1 , h 1 , h } by Lemma 1. For every i [ 2 , h 2 ] , the width of H i is 3 and, since d d ( H i ) > 2 , we have d d ( H i ) = 3 by Inequality (2) of Lemma 2. Hence, c d ( H , C P ) = max { d d ( H 0 ) , , d d ( H h ) } = 3 . By Lemma 5 and by d d ( H ) > 2 we have d d ( H ) = 3 , which is optimum.
It is possible to construct the three-dimensional dominance drawings Γ i of G i , for i { 0 , 1 , h 1 , h } , by Lemma 1 and by adding a third dimension as described at the beginning of Section 3.1. For every i [ 2 , h 2 ] , it is possible to construct the three-dimensional dominance drawing Γ i of G i by Theorem 2. Hence, given C P , it is possible to construct S d d = { Γ 0 , , Γ h } and the three-dimensional dominance drawing Γ ( H , S d d ) of H as described in the proof of Lemma 5. Figure 5b depicts, for every v H , the values D 1 ( v ) , D 2 ( v ) , D 3 ( v ) associated to the dimensions D 1 , D 2 , and D 3 of the drawing Γ ( H , S d d ) , where graph H is depicted in Figure 5a.

4. A Discussion on Weak Dominance Drawings

In this section we discuss the concept of weak dominance drawings, which is a generalization of the concept of dominance drawing. We point out the reason why it was introduced and we show two recent papers showing that this concept can be very useful in practice.
Given two vertices u and v of a DAG G, checking if there exists a directed path from u to v is denoted by reachability query. The problem of answering efficiently to reachability queries is widely studied in the literature. See, for example [10,17,20]. See also the following two very recent papers [21,22] and see [23] for a survey.
Dominance Drawing is a concept that can be very useful for answering reachability queries, that is, checking the existence of a path connecting two vertices in graph databases.Recall that given a dominance drawing of a DAG G having k dimensions, it is possible to answer to a reachability query very efficiently in O ( k ) time by using O ( k n ) space. By using some clever strategy, as for the algorithm described in Section 2, the time can also be O ( 1 ) , that is, independent of the number of dimensions.
Computing dominance drawings of DAGs having a low number of dimensions would be important in practice. Unfortunately, most of the existing algorithms obtaining dominance drawings require the input DAG to have specific properties, that is, to be planar, as stated in Lemma 1. The algorithms that we presented so far avoid this problem, since no restriction on the input graph is given. On the other hand, the computational time required to compute dominance drawings is still not linear. For example, for the algorithm described in Section 2 computes f-dimensional dominance drawings in O ( f n 2 ) time, where n and f are the number of nodes and the width of G, respectively. When the number of vertices is very large, computing such drawings can be prohibitively expensive. By using heuristics for the computation of (sub-optimal) chain covers we can make the algorithms faster. Another possibility is to relax the concept of dominance. As we are going to observe in the rest of this section, this direction was studied by several authors.
The concept of weak dominance, a relaxed version of dominance, was introduced in [9]. The “if and only if” of dominance becomes an “if” in weak dominance. Namely, in a weak dominance drawing Γ of a DAG G = ( V , E ) , two vertices u , v V are incomparable in G if there exists two dimensions D and D such that D ( u ) < D ( v ) and D ( v ) < D ( u ) . Unfortunately, u and v can be incomparable while D ( u ) D ( v ) for any dimension D of Γ . In this case there is a falsely implied path (fip) between u and v. Clearly, any DAG G admits a k-dimensional weak dominance drawing for any integer k. For example, any topological order of the vertices of G is a one-dimensional weak dominance drawing of G. In [24] it is studied an interesting variation of the weak dominance drawing problem.
Given a weak dominance drawing Γ , if there are two dimensions D and D of Γ such that D ( u ) D ( v ) and D ( u ) D ( v ) , then u and v are incomparable. This computation requires O ( k ) time. Otherwise, more expensive computations are needed to check weather there is a path connecting u and v. For example, a Breadth First Search (BFS) would take O ( n + m ) time per search. Minimizing the number of fips minimizes the number of BFS operations required by the drawing and, consequently, the average time required for a reachability query. Notice that minimizing the number of fips is NP-hard [9,25]. The weak dominance drawings were recently used to construct compact representations of the reachability information in databases [4,10].
Interesting experiments on algorithms computing weak dominance drawings are presented in [4,10]. They show that by using weak dominance drawings, it is possible to answer reachability queries more efficiently with respect to previous results. In [10] they use weak dominance drawing with more than two dimensions in order to have less fips and they show that even by using few dimensions, that is, by using almost linear space, it is possible to improve the results significantly. Extending [10], Lionakis et al. [11] show that, for the same families of graphs considered in [10] and by using a number of dimensions similar to the ones used in [10], it is possible to compute dominance drawings (i.e., 0 fips).
The technique used in [11] is similar to the one described in Section 2 of this paper. The computational time required to compute dominance drawings in [11] is still higher than the one to compute weak dominance drawings [10]. However, these results suggest that a possible direction for this line of research is to actually use directly dominance drawings instead of weak dominance drawings. In fact, in Section 3 we presented algorithms that compute dominance drawings with a reduced number of dimensions with respect to the ones presented in Section 2, and consequently in [10,11].

5. Conclusions and Open Problems

In this paper, we reviewed some mathematical results on dominance drawings of DAGs and their dimension, and presented an efficient algorithm that, for every s t -graph G with width f, constructs an f-dimensional dominance drawing. As far as we know, these are the most efficient algorithms to construct dominance drawings for any input DAG with a number of dimension that is described by the theoretical bounds.
We used the concept of congruence dimension c d ( G , C P ) of G given a transitive congruence partition C P of G, and we presented an efficient algorithm to compute a dominance drawing of G in c d ( G , C P ) dimensions. The congruence dimension c d ( G , C P ) of G is a better upper bound of the dominance dimension of G. Indeed, we showed that there exists a family of graphs so that for every graph H of the family the best-known upper bound of d d ( H ) , according to Hiraguchi’s Theorem (Inequality (1) of Lemma 2), was n 2 and we proved that, according to Lemma 5, d d ( H ) = 3 .
Notice that the number of dimensions used by a dominance drawing may be large, and the algorithm to compute it requires O ( f n 2 ) time. Therefore, it may be prohibitive for very large data sets as the ones used recently by the database community. There are three ways to approach these problems from theoretical and practical points of view:
  • Use a relaxed version of dominance drawing called weak dominance drawing, see [9]. The existence of fips cannot be excluded since the number of dimensions in a weak dominance drawing is typically significantly less than d d ( G ) . Hence, computing such drawings with few fips is central to any approach involving weak dominance drawings. Recall that minimizing the number of fips is NP-hard [9,25]. Additionally, using more dimensions in a weak dominance drawing reduces the number of fips. It would be interesting to experimentally study this tradeoff.
  • Explore heuristics in order to compute dominance drawings of DAGs in “almost linear time”, even if they need a higher number of dimensions. This would be another interesting research direction given the high complexity required by current algorithms.
  • Finally, an interesting theoretical open problem is to find algorithms that construct dominance drawings of similar quality as the ones computed by the current algorithms (that require O ( f n 2 ) time) but in less time, or prove a non-trivial lower bound for this construction.

Author Contributions

G.O. and I.G.T. contributed equally to this work. All authors have read and agreed to the published version of the manuscript.

Funding

The research of I.G.T. was supported in part by Tom Sawyer Software, Inc., Berkeley, CA, U.S.A.

Data Availability Statement

Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. ElGindy, H.A.; Houle, M.E.; Lenhart, W.; Miller, M.; Rappaport, D.; Whitesides, S. Dominance Drawings of Bipartite Graphs. In Proceedings of the 5th Canadian Conference on Computational Geometry, Waterloo, ON, Canada, 8–10 August 1993; University of Waterloo: Waterloo, ON, Canada, 1993; pp. 187–191. [Google Scholar]
  2. Di Battista, G.; Tamassia, R.; Tollis, I.G. Area Requirement and Symmetry Display of Planar Upward Drawings. Discret. Comput. Geom. 1992, 7, 381–401. [Google Scholar] [CrossRef]
  3. Six, J.M.; Tollis, I.G. Automated Visualization of Process Diagrams. In Graph Drawing; Mutzel, P., Jünger, M., Leipert, S., Eds.; Springer: Berlin/Heidelberg, Germany, 2002; pp. 45–59. [Google Scholar]
  4. Veloso, R.R.; Cerf, L.; Meira, W., Jr.; Zaki, M.J. Reachability Queries in Very Large Graphs: A Fast Refined Online Search Approach. In Proceedings of the 17th International Conference on Extending Database Technology (EDBT 2014), Athens, Greece, 24–28 March 2014; pp. 511–522. [Google Scholar]
  5. Yannakakis, M. The complexity of the partial order dimension problem. SIAM J. Algebr. Discret. Methods 1982, 3, 303–322. [Google Scholar] [CrossRef]
  6. Battista, G.D.; Eades, P.; Tamassia, R.; Tollis, I.G. Graph Drawing: Algorithms for the Visualization of Graphs; Prentice Hall: Hoboken, NJ, USA, 1998; pp. 112–127. [Google Scholar]
  7. Dushnik, B.; Miller, E.W. Partially ordered sets. Am. J. Math. 1941, 63, 600–610. [Google Scholar] [CrossRef] [Green Version]
  8. McConnell, R.M.; Spinrad, J.P. Linear-Time Transitive Orientation. In Proceedings of the Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, New Orleans, LA, USA, 5–7 January 1997; Saks, M.E., Ed.; ACM/SIAM: Philadelphia, PA, USA, 1997; pp. 19–25. [Google Scholar]
  9. Kornaropoulos, E.M.; Tollis, I.G. Weak Dominance Drawings for Directed Acyclic Graphs. In Proceedings of the Graph Drawing—20th International Symposium, GD 2012, Redmond, WA, USA, 19–21 September 2012; pp. 559–560, Revised Selected Papers. [Google Scholar] [CrossRef] [Green Version]
  10. Li, L.; Hua, W.; Zhou, X. HD-GDD: High dimensional graph dominance drawing approach for reachability query. World Wide Web 2017, 20, 677–696. [Google Scholar] [CrossRef]
  11. Lionakis, P.; Ortali, G.; Tollis, I.G. Constant-Time Reachability in DAGs Using Multidimensional Dominance Drawings. SN Comput. Sci. 2021, 2, 320. [Google Scholar] [CrossRef]
  12. Jagadish, H.V. A Compression Technique to Materialize Transitive Closure. ACM Trans. Database Syst. 1990, 15, 558–598. [Google Scholar] [CrossRef]
  13. Bogart, K.P. Maximal dimensional partially ordered sets I. Hiraguchi’s theorem. Discret. Math. 1973, 5, 21–31. [Google Scholar] [CrossRef] [Green Version]
  14. Hiraguchi, T. On the dimension of partially ordered sets. Sci. Rep. Kanazawa Univ. 1951, 1, 77–94. [Google Scholar]
  15. Dilworth, R.P. A decomposition theorem for partially ordered sets. Ann. Math. 1950, 52, 161–166. [Google Scholar] [CrossRef]
  16. Chen, Y.; Chen, Y. On the DAG Decomposition. Br. J. Math. Comput. Sci. 2015, 10, 1–27. [Google Scholar] [CrossRef] [PubMed]
  17. Anirban, S.; Wang, J.; Islam, M.S. Modular Decomposition-Based Graph Compression for Fast Reachability Detection. Data Sci. Eng. 2019, 4, 193–207. [Google Scholar] [CrossRef] [Green Version]
  18. McConnell, R.M.; Spinrad, J.P. Modular decomposition and transitive orientation. Discret. Math. 1999, 201, 189–241. [Google Scholar] [CrossRef] [Green Version]
  19. Möhring, R. Computationally Tractable Classes of Ordered Sets. In Algorithms and Order; Rival, I., Ed.; NATO ASI Series (Series C: Mathematical and Physical Sciences); Springer: Dordrecht, The Netherlands, 1989; Volume 255. [Google Scholar] [CrossRef]
  20. Su, J.; Zhu, Q.; Wei, H.; Yu, J.X. Reachability Querying: Can It Be Even Faster? IEEE Trans. Knowl. Data Eng. 2017, 29, 683–697. [Google Scholar] [CrossRef]
  21. Yang, L.; Chen, T.; Zhang, J.; Long, J.; Hu, Z.; Sheng, V.S. Fruited-Forest: A Reachability Querying Method Based on Spanning Tree Modelling of Reduced DAG. In Web and Big Data, Proceedings of the 4th International Joint Conference, APWeb-WAIM 2020, Tianjin, China, 18–20 September 2020; Wang, X., Zhang, R., Lee, Y., Sun, L., Moon, Y., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2020; Volume 12317, pp. 145–153. [Google Scholar] [CrossRef]
  22. Zhou, J.; Yu, J.X.; Li, N.; Wei, H.; Chen, Z.; Tang, X. Accelerating reachability query processing based on DAG reduction. VLDB J. 2018, 27, 271–296. [Google Scholar] [CrossRef]
  23. Yu, J.X.; Cheng, J. Graph Reachability Queries: A Survey. In Managing and Mining Graph Data; Springer: Boston, MA, USA, 2010. [Google Scholar]
  24. Ferreira da Silva, R.; Urrutia, S.; dos Santos, V.F. One-Sided Weak Dominance Drawing. Theor. Comput. Sci. 2019, 757, 36–43. [Google Scholar] [CrossRef]
  25. Kornaropoulos, E.M.; Tollis, I.G. Weak Dominance Drawings and Linear Extension Diameter. arXiv 2011, arXiv:1108.1439. [Google Scholar]
Figure 1. (a) A chain cover S c = { C 1 , C 2 } of G, where: C 1 = { s , v 3 , v 4 , t } and C 2 = { s , v 1 , v 2 , v 5 , v 6 , t } . We have: s = ( 1 , 0 ) = ( 2 , 0 ) ; v 1 = ( 2 , 1 ) ; v 2 = ( 2 , 2 ) ; v 3 = ( 1 , 1 ) ; v 4 = ( 1 , 2 ) ; v 5 = ( 2 , 3 ) ; v 6 = ( 2 , 4 ) ; t = ( 1 , 3 ) = ( 2 , 5 ) . (b) The compressed transitive closure of G given S c . (c) The drawing Γ ( G , S c ) .
Figure 1. (a) A chain cover S c = { C 1 , C 2 } of G, where: C 1 = { s , v 3 , v 4 , t } and C 2 = { s , v 1 , v 2 , v 5 , v 6 , t } . We have: s = ( 1 , 0 ) = ( 2 , 0 ) ; v 1 = ( 2 , 1 ) ; v 2 = ( 2 , 2 ) ; v 3 = ( 1 , 1 ) ; v 4 = ( 1 , 2 ) ; v 5 = ( 2 , 3 ) ; v 6 = ( 2 , 4 ) ; t = ( 1 , 3 ) = ( 2 , 5 ) . (b) The compressed transitive closure of G given S c . (c) The drawing Γ ( G , S c ) .
Foundations 01 00020 g001
Figure 2. (a) An s t -graph G and congruence partition C P = { M 1 , , M 14 } of it. (b) The quotient graph G / C P . (c) Graph G depicted in (a) and a transitive congruence partition C P = { M 1 , M 2 , M 3 , M 4 } of it that is not a congruence partition. (d) The transitive quotient graph G / C P .
Figure 2. (a) An s t -graph G and congruence partition C P = { M 1 , , M 14 } of it. (b) The quotient graph G / C P . (c) Graph G depicted in (a) and a transitive congruence partition C P = { M 1 , M 2 , M 3 , M 4 } of it that is not a congruence partition. (d) The transitive quotient graph G / C P .
Foundations 01 00020 g002
Figure 3. The drawings Γ 0 , , Γ 4 for the graph G depicted in Figure 2c with transitive congruence partition C P = { M 1 , , M 4 } . The transitive quotient graph G 0 = G / C P is depicted in Figure 2d.
Figure 3. The drawings Γ 0 , , Γ 4 for the graph G depicted in Figure 2c with transitive congruence partition C P = { M 1 , , M 4 } . The transitive quotient graph G 0 = G / C P is depicted in Figure 2d.
Foundations 01 00020 g003
Figure 5. Illustration of the example described in Section 3.3.
Figure 5. Illustration of the example described in Section 3.3.
Foundations 01 00020 g005
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ortali, G.; Tollis, I.G. Multidimensional Dominance Drawings and Their Applications. Foundations 2021, 1, 271-285. https://0-doi-org.brum.beds.ac.uk/10.3390/foundations1020020

AMA Style

Ortali G, Tollis IG. Multidimensional Dominance Drawings and Their Applications. Foundations. 2021; 1(2):271-285. https://0-doi-org.brum.beds.ac.uk/10.3390/foundations1020020

Chicago/Turabian Style

Ortali, Giacomo, and Ioannis G. Tollis. 2021. "Multidimensional Dominance Drawings and Their Applications" Foundations 1, no. 2: 271-285. https://0-doi-org.brum.beds.ac.uk/10.3390/foundations1020020

Article Metrics

Back to TopTop