860 likes | 1.06k Views
h-quasi planar drawings of bounded treewidth graphs in linear area. Emilio Di Giacomo, Walter Didimo, Giuseppe Liotta , Fabrizio Montecchiani University of Perugia 13 th Italian Conference on Theoretical Computer Science 19-21 September 2012, Varese, Italy.
E N D
h-quasi planar drawings of boundedtreewidth graphs in linear area Emilio Di Giacomo, Walter Didimo, Giuseppe Liotta, Fabrizio Montecchiani University of Perugia 13th Italian Conference on Theoretical Computer Science 19-21 September 2012, Varese, Italy
Graph Drawing and Area Requirement Graph G Straight-linegriddrawing of G
Graph Drawing and Area Requirement w Area requirement of straight-line drawings is a widely studied topic in Graph Drawing h Graph G Straight-linegriddrawing of G
Area Requirement for planar drawings • Area requirement problem mainly studied for planar straight-line grid drawings: • planar graphs have planar straight-line grid drawings in O(n2) area (worst case optimal) [de Fraysseix et al.; Schnyder; 1990] • sub-quadratic upper bounds: • trees – O(n log n) [Crescenzi et al., 1992] • outerplanar graphs – O(n1.48) [Di Battista, Frati, 2009] • super-linear lower bound: • series-parallel graphs – Ω(n2√(log n)) [Frati, 2010]
Area Requirement for planar drawings • Planarity imposes severe limitations on the optimization of the area
Area Requirement for planar drawings • Planarity imposes severe limitations on the optimization of the area • Non-planar straight-line drawings in O(n) area exist for k-colorable graphs [Wood, 2005] – no guarantee on the type and on the number of crossings A drawing by Wood’s technique
Beyond planarity: crossing complexity • Non-planar drawings should be considered: • How can we “control” the crossing complexity of a drawing?
Crossing complexity measures • Large Angle Crossing drawings (LAC) or Right Angle Crossing drawings (RAC), [Didimo et al., 2011] RAC drawing
Crossing complexity measures • h-Planar drawings: at most h crossings per edge 1-planar drawing
Crossing complexity measures • h-Quasi Planar drawings: at most h-1 mutually crossing edges 3-quasi planar drawing
The problem • We investigate trade-offs between area requirement and crossing complexity • We focus on h-quasi planarity as a measure of crossing complexity
Our contribution 1/2(h-quasi planar drawings) • General technique: Every n-vertex graph with treewidth ≤ k, has an h-quasi planar drawing in O(n) area with h depending only on k
Our contribution 1/2(h-quasi planar drawings) • General technique: Every n-vertex graph with treewidth ≤ k, has an h-quasi planar drawing in O(n) area with h depending only on k • Ad-hoc techniques: Smaller values of h for specific subfamilies of planar partial k-trees (outerplanar, flat series-parallel, proper simply nested)
Our contribution 2/2(h-quasi planarity vs h-planarity) • Comparison: There exist n-vertex series-parallel graphs (partial 2-trees) such that every h-planar drawing requires super-lineararea for any constant h • 11-quasi planar drawings in linear area always exist
Our contribution 2/2(h-quasi planarity vs h-planarity) • Comparison: There exist n-vertex series-parallel graphs (partial 2-trees) such that every h-planar drawing requires super-lineararea for any constant h • 11-quasi planar drawings in linear area always exist • Additional result: There exist n-vertex planar graphs such that every h-planar drawing requires quadratic area for any constant h
What’s coming next • Basic definitions • Results on h-quasi planarity • Comparison with h-planarity • Conclusions and open problems
Bounded treewidth graphs • What’s a k-tree?
Bounded treewidth graphs • What’s a k-tree? • a clique of size k is a k-tree 3-tree construction
Bounded treewidth graphs • What’s a k-tree? • a clique of size k is a k-tree • the graph obtained from a k-tree by adding a new vertex adjacent to each vertex of a clique of size k is a k-tree 3-tree construction
Bounded treewidth graphs • What’s a k-tree? • a clique of size k is a k-tree • the graph obtained from a k-tree by adding a new vertex adjacent to each vertex of a clique of size k is a k-tree 3-tree construction
Bounded treewidth graphs • What’s a k-tree? • a clique of size k is a k-tree • the graph obtained from a k-tree by adding a new vertex adjacent to each vertex of a clique of size k is a k-tree 3-tree construction
Bounded treewidth graphs • What’s a k-tree? • a clique of size k is a k-tree • the graph obtained from a k-tree by adding a new vertex adjacent to each vertex of a clique of size k is a k-tree 3-tree construction
Bounded treewidth graphs • What’s a k-tree? • a clique of size k is a k-tree • the graph obtained from a k-tree by adding a new vertex adjacent to each vertex of a clique of size k is a k-tree • A subgraph of a k-tree is a partial k-tree • A graph has treewidth ≤ k it is a partial k-tree 3-tree construction
Track assignment • t-track assignment of a graph G [Dujmović et al., 2004] = t vertex coloring + total ordering <i in each color class Vi 3-track assignment
Track assignment • t-track assignment of a graph G [Dujmović et al., 2004] = t vertex coloring + total ordering <i in each color class Vi • (Vi ,<i ) = trackτi, 1 ≤ i ≤ t track 3-track assignment
Track assignment • t-track assignment of a graph G [Dujmović et al., 2004] = t vertex coloring + total ordering <i in each color class Vi • (Vi ,<i ) = trackτi, 1 ≤ i ≤ t • X-crossing = (u, v), (w, z): u,w ∈ Vi, v, z ∈ Vj , u <i w and z <j v, for i ≠ j X-crossing
Track assignment • t-track assignment of a graph G [Dujmović et al., 2004] = t vertex coloring + total ordering <i in each color class Vi • (Vi ,<i ) = trackτi, 1 ≤ i ≤ t • X-crossing = (u, v), (w, z): u,w ∈ Vi, v, z ∈ Vj , u <i w and z <j v, for i ≠ j NOT anX-crossing
Track layout • (c, t)-track layout of G = t-track assignment + edge c-coloring: no two edges of the same color form an X-crossing (2,3)-track layout
Track layout • (c, t)-track layout of G = t-track assignment + edge c-coloring: no two edges of the same color form an X-crossing (2,3)-track layout
Track layout • (c, t)-track layout of G = t-track assignment + edge c-coloring: no two edges of the same color form an X-crossing (2,3)-track layout
THE GENERAL Technique: Computing compact h-quasi planar drawings of k-trees
Ingredients of the result • assume to have a (c,t)-track layout: we show how to compute a [c(t-1)+1]-quasi planar drawing in O(t3 n) area
Ingredients of the result • assume to have a (c,t)-track layout: we show how to compute a [c(t-1)+1]-quasi planar drawing in O(t3 n) area • we prove that every partial k-tree has a (2,t)-track layout where t depends on k but it does not depend on n
Ingredients of the result • assume to have a (c,t)-track layout: we show how to compute a [c(t-1)+1]-quasi planar drawing in O(t3 n) area • we prove that every partial k-tree has a (2,t)-track layout where t depends on k but it does not depend on n every partial k-tree has a O(1)-quasi planar drawing in area O(n)
An example INPUT: A partial k-tree G
An example INPUT: A partial k-tree G G = 2-tree
An example INPUT: A partial k-tree G • Compute a (2,tk)-track layout of G
An example 1) = (2,t)-track layout of G t = 4
An example INPUT: A partial k-tree G • Compute a (2,tk)-track layout of G • Construct an hk-quasi planar drawing from OUTPUT: The drawing
An example 2) = h-quasi planar drawing of G h ≤ c(t-1)+1 = 2(4-1)+1 = 7
An example INPUT: A partial k-tree G • Compute a (2,tk)-track layout of G • Construct an hk-quasi planar drawing from OUTPUT: The drawing
(c,t)-track layout h-quasi planar drawing • Lemma 1: every n-vertex graph G admitting a (c,t)-track layout, also admits an h-quasi planar drawing in O(t3n) area, where h = c(t − 1) + 1
(c,t)-track layout h-quasi planar drawing place the vertices alongsegments
(c,t)-track layout h-quasi planar drawing anyedgeconnecting a vertex on a segment i to a vertex on a segment j (i < j) do notoverlapwithanyvertex on a segment k s.t. i < k <j
(c,t)-track layout h-quasi planar drawing anyedgeconnecting a vertex on a segment i to a vertex on a segment j (i < j) do notoverlapwithanyvertex on a segment k s.t. i < k <j
(c,t)-track layout h-quasi planar drawing A = O(t3n) t O(t2n)
(c,t)-track layout h-quasi planar drawing: upper bound on h • We prove that at most c(t − 1) edges mutually cross