Elsevier

Information Processing Letters

Volume 91, Issue 5, 15 September 2004, Pages 221-225
Information Processing Letters

Counting edge crossings in a 2-layered drawing

https://doi.org/10.1016/j.ipl.2004.05.001Get rights and content

Abstract

Given a bipartite graph G=(V,W,E) with a bipartition {V,W} of a vertex set and an edge set E, a 2-layered drawing of G in the plane means that the vertices of V and W are respectively drawn as distinct points on two parallel lines and the edges as straight line segments. We consider the problem of counting the number of edge crossings. In this paper, we design two algorithms to this problem based on the dynamic programming and divide-and-conquer approaches. These algorithms run in O(n1n2) time and O(m) space and in O(min{n1n2,|E|log(min{|V|,|W|})}) time and O(m) space, respectively. Our algorithms outperform the previously fastest Θ(|E|log(min{|V|,|W|})) time algorithm for dense graphs.

References (6)

  • W Barth et al.

    Simple and efficient bilayer cross counting

  • P Eades et al.

    Edge crossing in drawing bipartite graphs

    Algorithmica

    (1994)
  • M Jünger et al.

    2-layer straight line crossing minimization: performance of exact and heuristic algorithms

    J. Graph Algorithms Appl.

    (1997)
There are more references available in the full text version of this article.

Cited by (0)

View full text