11email: [email protected] 22institutetext: University of Arizona
22email: {kobourov,myroslav}@arizona.edu
An FPT Algorithm for Bipartite Vertex Splitting
Abstract
Bipartite graphs model the relationship between two disjoint sets of objects. They have a wide range of applications and are often visualized as 2-layered drawings, where each set of objects is visualized as vertices (points) on one of two parallel horizontal lines and the relationships are represented by (usually straight-line) edges between the corresponding vertices. One of the common objectives in such drawings is to minimize the number of crossings. This, in general, is an NP-hard problem and may still result in drawings with so many crossings that they affect the readability of the drawing. We consider a recent approach to remove crossings in such visualizations by splitting vertices, where the goal is to find the minimum number of vertices to be split to obtain a planar drawing. We show that determining whether a planar 2-layered drawing exists after splitting at most vertices is fixed parameter tractable in .
Keywords:
fixed parameter tractability graph drawing vertex splitting1 Introduction
Bipartite graphs are used in many applications to study complex systems and their dynamics [20]. We can visualize a bipartite graph as a 2-layered drawing where vertices in are placed (at integer coordinates) along the horizontal line defined by and vertices in along the line below (at integer coordinates) defined by .
A common optimization goal in graph drawing is to minimize the number of crossings. Deciding whether a planar 2-layered drawing exists for a given graph can be done in linear time, although most graphs, including sparse ones such as cycles and binary trees, do not admit planar 2-layered drawings [6]. The problem of minimizing the number of crossings in 2-layered layouts is NP-hard, even if the maximum degree of the graph is at most four [16], or if the permutation of vertices is fixed on one of the layers [6]. The latter variant of the problem is known as One-Sided Crossing Minimization (OSCM). The minimum number of crossings in a 2-layered drawing can be approximated within a factor of and , where is the minimum degree, given that [17]. Dujmović et al. [5] gave a fixed-parameter tractable (FPT) algorithm with runtime , which was later improved to [4]. Fernau et al. [10] reduced this problem to weighted FAST (feedback arc sets in tournaments) obtaining a subexponential time algorithm that runs in time . Finally Kobayashi and Tamaki [14] gave a straightforward dynamic programming algorithm on an interval graph associated with each OSCM instance with runtime . They also showed that the exponent in their bound is asymptotically optimal under the Exponential Time Hypothesis (ETH) [11], a well-known complexity assumption which states that, for each , there is a positive constant such that -SAT cannot be solved in time where is the number of variables.
Minimizing the number of crossings in 2-layer drawings may still result in visually complex drawings from a practical point of view [12]. Hence, we study vertex splitting [7, 15, 8, 13] which aims to construct planar drawings, and thus, avoid crossings altogether. In the split operation for a vertex we delete from , add two new copies and , and distribute the edges originally incident to between the two new vertices and . There are two main variations of the objective in vertex splitting: minimizing the number of split operations (or splits) and minimizing the number of split vertices (each vertex can be split arbitrary many times) to obtain a planar drawing of . Minimizing the number of splits is NP-hard even for cubic graphs [9]. Nickel et al. [18] extend the investigation of the problem and its complexity from abstract graphs to drawings of graphs where splits are performed on an underlying drawing.
Vertex splitting in bipartite graphs with 2-layered drawings has not received much attention [2]. In several applications, such as visualizing graphs defined on anatomical structures and cell types in the human body [19], the two vertex sets of play different roles and vertex splitting is allowed only on one side of the layout. This has motivated the interest in splitting the vertices in only one vertex partition of the bipartite graph. It has been shown that minimizing splits in this setting is NP-hard for an arbitrary bipartite graph [3].
The other variant – minimizing the number of split vertices – has been recently considered and was shown to be NP-hard [1]. On the positive side, we show that the problem is FPT parameterized by the natural parameter, that is, the number of split vertices.
Problem (Crossing Removal with Split Vertices – CRSV()).
Let be a bipartite graph. Decide whether there is a planar 2-layer drawing of after splitting at most vertices of .
In the next section we prove the following theorem.
Theorem 1.1.
Given a bipartite graph , the CRSV() problem can be decided in time , where is the number of edges of .
We prove Theorem 1.1 using kernelization, one of the standard techniques for designing FPT algorithms. The goal of kernelization is to reduce the input instance to its computationally hard part on which a slower exact algorithm can be applied. If the size of the reduced instance is bounded by a function of the parameter, the problem can be solved by brute force on the reduced instance yielding FPT runtime. Our reduction consists of two parts.
In the first part we identify and remove vertices that necessarily belong to the solution (Step 1 below) and remove redundant vertices of the input graph ; Step 2 below. Then we show that there is a solution for the reduced graph if and only if there is a solution for the original graph ; see Claim 1. Then we prove two structural properties about the degrees of the vertices of ; see Lemmas 1 and 2. These two properties allow us to bound the size of the “essential” part (called the core) of the reduced graph ; see Lemma 3.
In the second part of the reduction we remove more redundant vertices of and identify and remove the vertices that necessarily belong to the solution. Then we show that the resulting reduced graph has size bounded by a polynomial function of the parameter; see Lemma 4. Finally, we show that there is a solution for if and only if there is a solution for ; see Claim 2. The proof is concluded by applying an exact algorithm to the graph .
2 Proof of Theorem 1.1
Let be a bipartite graph and be the number of vertices that we are allowed to split.
First reduction rule:
Before we describe our first reduction rule, we make a useful observation.
Observation 1.
If a vertex has at least three neighbours of degree at least two, it must be split in any planar 2-layered drawing of ; see Figure 1(a).
Let be the set of such vertices of degree 3 or more in (as described in Observation 1). The first reduction rule consists of two steps described below.
-
1.
We initialize our solution set with the vertices in , that is, and remove them from the graph . Let the resulting graph be and ; note that .
-
2.
Let be the set of vertices such that deg and deg, where is the unique neighbor of in . Similarly, let be the set of vertices such that deg and deg, where is the unique neighbor of in . We remove the vertices and from the graph . Let the resulting graph be .
Let us now show the following.
Claim 1.
The graph is a Yes instance for CRSV() if and only if is a Yes instance for CRSV().
Proof.
We first argue the “only if” direction: consider a planar 2-layered drawing of with at most vertices split. According to Observation 1, each vertex in is split, moreover, none of the vertices in are split because each of them has degree one. Therefore, there are at most vertices in that are split. Because and there exists a planar 2-layered drawing of with at most vertices split.
For the “if” direction, consider a planar 2-layered drawing of with at most vertices split. Note that after applying Step 1 and Step 2 the vertices in have degree at most two. Thus for each vertex we can reinsert its split copies (each reinserted vertex has degree one) without crossings; see Figure 1. For the same reason we can reinsert the vertices in of degree one removed at Step 2; see Figure 2. To see that we can reinsert each vertex of degree one removed at Step 2 observe that we always connect it to a vertex of degree at least two, therefore, in any planar 2-layered drawing of there is always a safe wedge formed by two edges and where we can fit in the edge without causing any crossings; see Figure 2. ∎




Now we state two observations about the degrees of the vertices of the graph .
Lemma 1.
For each vertex it holds that deg if there exists a planar 2-layered drawing of with at most split vertices.
Proof.

To make our second observation let be the set of all the vertices of degree at least three in .
Lemma 2.
It holds that if there exists a planar 2-layered drawing of with at most split vertices.
Proof.
Observe that according to Step 2 no vertex in has any neighbors of degree one in . This implies that for each vertex in at least one of its neighbors must be split to obtain a planar 2-layered drawing of ; see Figure 4. But the degree of is at most two, therefore, splitting can resolve crossings for at most two vertices . Thus, if , more than vertices in must be split to obtain a planar 2-layered drawing of ; contradiction. ∎


For a subset of vertices let denote the set of neighbors of . From Lemma 1 and 2 we obtain the following.
Lemma 3.
The graph induced by the vertices has at most vertices if there exists a planar 2-layered drawing of with at most split vertices.
Let and call the graph induced by the vertices in the core of . Now we can proceed to the second reduction rule.
Second reduction rule:
Observe that all the vertices in have degree at most two, and therefore, induce paths or cycles in . Since the cycles are not connected to the core in (because their vertices have degree at most two in ) we can remove them and handle separately. We need to account for one split vertex per each such cycle. Let be the set of these cycles and let . In addition, let be the set of vertices that we split in these cycles, .
Let be the set of paths induced in by the vertices in of length at least . We reduce to by shortening each path (that is, iteratively removing one of the middle vertices of from and identifying its two neighbours in ) until has at most vertices. Because during shortening step the length of decreases by two, after the shortening process will still have at least vertices.
Claim 2.
The graph is a Yes instance for CRSV() if and only if is a Yes instance for CRSV().
Proof.
In one direction the claim is obvious, because shortening paths in a planar 2-layered drawing of the graph does not cause any crossings.
For the other direction, consider a planar 2-layered drawing of the graph . To obtain from it a planar 2-layered drawing of the graph we need to: (1) reinsert each of the cycles in that we have removed from to obtain , and (2) reinsert back the missing parts of the paths of , which are made up of the vertices from . Because the cycles in are disconnected from we can reinsert them anywhere in the drawing wherever there is space with one split vertex in .
Let us now argue why we can reinsert the missing vertices from into the paths in ; we will refer to Figure 5 for illustration. Because for any such path the length of is at least there must be at least one vertex in that was not split in a planar 2-layered drawing of (see Figure 5(a)), as otherwise a planar 2-layered drawing of cannot be constructed with at most splits. Therefore, there must be a safe wedge formed by the unsplit vertex and the two edges of the path incident to providing space to reinsert the missing vertices without causing any crossings; see Figure 5(b). ∎


Lemma 4.
The graph has at most vertices.
Proof.
According to Lemma 3 the core has at most vertices and according to Lemma 1 the highest degree of each vertex in is at most . Therefore, there can be at most many paths induced by the vertices in . Moreover, after applying the second reduction rule each such path has at most vertices. Thus the total number of vertices in is at most . ∎
Finally we decide CRSV() for by brute force. More precisely, we check all subsets of such that . For each vertex in we check all ways to partition its incident edges (at most ) into non-empty subsets, this represents splitting of . The number of such partitions is bounded by the Bell number of order , which in turn is bounded by . Then we run a linear time algorithm to check whether a planar 2-layered drawing of the resulting graph exists. This can be done in time , where is the number of edges of . If is a yes instance for CRSV() with the subset of split vertices , we update our solution set and return it. It is worth noting that the kernelization itself can be done in time since we process each vertex in constant time given that we know its degree. Thus, the kernelization does not affect the total asymptotic runtime of the algorithm.
3 Conclusion and Open Problems
We presented an FPT algorithm for the CRSV() problem parameterized by . Improving the runtime is needed for this algorithm to be useful in practice, as the constants are very large. Another natural direction is to look for an FPT algorithm for the other variant of the problem, that is, minimizing the number of splits, which was recently shown to be NP-hard [1].
Problem (Crossing Removal with Splits – CRS()).
Let be a bipartite graph. Decide whether there is a planar 2-layer drawing of after applying at most splits to the vertices in .
Is there an FPT algorithm for the CRS() problem parameterized by ? It is not clear how to adjust the algorithm in Theorem 1.1 as it splits every vertex in as many times as its degree, and thus, the number of splits is not bounded by a function of the parameter .
References
- [1] Ahmed, R., Angelini, P., Bekos, M.A., Battista, G.D., Kaufmann, M., Kindermann, P., Nöllenburg, M., Symvonis, A., Villedieu, A., Wallinger, M.: Splitting Vertices in 2-Layer Graph Drawings (2022), [unpublished manuscript]
- [2] Börner, K., Kobourov, S.: Multi-Level Graph Representation for Big Data Arising in Science Mapping (Dagstuhl Seminar 21152). Dagstuhl Reports 11(3), 1–15 (2021). https://doi.org/10.4230/DagRep.11.3.1, https://drops.dagstuhl.de/opus/volltexte/2021/14688
- [3] Chaudhary, A., Chen, D.Z., Hu, X.S., Niemier, M.T., Ravichandran, R., Whitton, K.: Fabricatable interconnect and molecular QCA circuits. IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 26(11), 1978–1991 (2007)
- [4] Dujmović, V., Fernau, H., Kaufmann, M.: Fixed parameter algorithms for one-sided crossing minimization revisited. Journal of Discrete Algorithms 6(2), 313–323 (2008)
- [5] Dujmović, V., Whitesides, S.: An efficient fixed parameter tractable algorithm for 1-sided crossing minimization. Algorithmica 40(1), 15–31 (2004)
- [6] Eades, P., McKay, B.D., Wormald, N.C.: On an edge crossing problem. In: Proc. 9th Australian Computer Science Conference. vol. 327, p. 334 (1986)
- [7] Eades, P., de Mendonça N., C.F.X.: Vertex-splitting and tension-free layouts. In: GD ’95. vol. 1027, pp. 202–211. Springer (1996)
- [8] Eppstein, D., Kindermann, P., Kobourov, S., Liotta, G., Lubiw, A., Maignan, A., Mondal, D., Vosoughpour, H., Whitesides, S., Wismath, S.: On the planar split thickness of graphs. Algorithmica 80, 977–994 (2018)
- [9] Faria, L., de Figueiredo, C.M.H., Mendonça, C.F.X.: Splitting number is NP-complete. DAM 108(1), 65–83 (2001)
- [10] Fernau, H., Fomin, F.V., Lokshtanov, D., Mnich, M., Philip, G., Saurabh, S.: Ranking and drawing in subexponential time. In: International Workshop on Combinatorial Algorithms. pp. 337–348. Springer (2010)
- [11] Impagliazzo, R., Paturi, R.: On the complexity of k-sat. Journal of Computer and System Sciences 62(2), 367–375 (2001)
- [12] Jünger, M., Mutzel, P.: 2-layer straightline crossing minimization: Performance of exact and heuristic algorithms. JGAA 1(1), 1–25 (1997)
- [13] Knauer, K., Ueckerdt, T.: Three ways to cover a graph. DM 339(2), 745–758 (2016)
- [14] Kobayashi, Y., Tamaki, H.: A fast and simple subexponential fixed parameter algorithm for one-sided crossing minimization. In: European Symposium on Algorithms. pp. 683–694. Springer (2012)
- [15] Liebers, A.: Planarizing graphs – a survey and annotated bibliography. JGAA 5(1), 1–74 (2001)
- [16] Muñoz, X., Unger, W., Vrt’o, I.: One sided crossing minimization is np-hard for sparse graphs. In: International Symposium on Graph Drawing. pp. 115–123. Springer (2001)
- [17] Nagamochi, H.: An improved approximation to the one-sided bilayer drawing. In: International Symposium on Graph Drawing. pp. 406–418. Springer (2003)
- [18] Nickel, S., Nöllenburg, M., Sorge, M., Villedieu, A., Wu, H.Y., Wulms, J.: Planarizing graphs and their drawings by vertex splitting (2022). https://doi.org/10.48550/ARXIV.2202.12293, https://arxiv.org/abs/2202.12293
- [19] Paul, H., Börner, K., Herr II, B.W., Quardokus, E.M.: ASCT+B REPORTER. https://hubmapconsortium.github.io/ccf-asct-reporter/ (2022), [Online; accessed 06-June-2022]
- [20] Pavlopoulos, G.A., Kontou, P.I., Pavlopoulou, A., Bouyioukos, C., Markou, E., Bagos, P.G.: Bipartite graphs in systems biology and medicine: a survey of methods and applications. GigaScience 7(4), giy014 (2018)