monotone drawings of graphs

34
1 Monotone Drawings of Graphs Thanks to Peter Eades www.dia.uniroma3.it/~compunet Patrizio Angelini, Enrico Colasante, Giuseppe Di Battista, Fabrizio Frati, and Maurizio Patrignani Roma Tre University, Italy

Upload: vanna-wilkinson

Post on 30-Dec-2015

32 views

Category:

Documents


0 download

DESCRIPTION

Monotone Drawings of Graphs. Patrizio Angelini, Enrico Colasante, Giuseppe Di Battista, Fabrizio Frati, and Maurizio Patrignani Roma Tre University, Italy. www.dia.uniroma3.it/~compunet. Thanks to Peter Eades. direction of monotonicity. Konstanz Univ. Bellavista Hotel. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Monotone Drawings of Graphs

1

Monotone Drawings of Graphs

Thanks to Peter Eades

www.dia.uniroma3.it/~compunet

Patrizio Angelini, Enrico Colasante,

Giuseppe Di Battista, Fabrizio Frati, and Maurizio Patrignani

Roma Tre University, Italy

Page 2: Monotone Drawings of Graphs

2

Konstanz Univ.

Bellavista Hotel

direction of monotonicity

Page 3: Monotone Drawings of Graphs

3

Konstanz Univ.

Petershof hotel

no direction of monotonicity

Page 4: Monotone Drawings of Graphs

4

monotone paths• monotone path with respect to a half-line l

– each segment of the path has a positive projection onto l• monotone path

– there exists an l such that the path is monotone with respect to

l

lp1

p2

Page 5: Monotone Drawings of Graphs

5

monotone drawings of graphs• monotone (straight-line) drawing of a

graph G– each pair of vertices of G are joined by a

monotone path• monotonicity does not imply planarity

l

Page 6: Monotone Drawings of Graphs

6

overview of the talk

• properties of monotone drawings

• monotone drawings of trees

• monotone drawings of graphs

• planar monotone drawings of biconnected graphs

• conclusions and open problems

Page 7: Monotone Drawings of Graphs

7

properties of monotone drawings• each pair of adjacent

edges forms a monotone path

• any subpath of a monotone path is monotone

• affine transformations preserve monotonicity

• each monotone path is planar– a monotone drawing

of a tree is planar

notmonotone

Page 8: Monotone Drawings of Graphs

8

convex drawings of trees• a convex drawing of a tree is such that replacing

edges leading to leaves with half-lines yields a partition of the plane into convex unbounded regions [Carlson, Eppstein, GD’06]

Page 9: Monotone Drawings of Graphs

9

strictly convex drawings of trees• a strictly convex drawing of a tree T is such that:

– it is a convex drawing of T– each set of parallel edges of T forms a collinear path

• every strictly convex drawing of a tree is monotone

Page 10: Monotone Drawings of Graphs

10

slope-disjoint drawing of trees• slope-disjoint drawing of a tree T

– each subtree rooted at vertex v uses an interval of slopes (v, v) where v – v <

– if u is the parent of v you have v < u < s(u,v) < u < v

– if v and w are siblings (v, v) (w, w) = v

u

v

u

v

w

Page 11: Monotone Drawings of Graphs

11

slope-disjoint drawing of trees• any slope-disjoint drawing of a tree is

monotone• we propose two algorithms:

– BFS-based algorithm• constructs a monotone drawing of a tree on a grid of area

O(n1.6) O(n1.6) – DFS-based algorithm

• constructs a monotone drawing of a tree on a grid of area O(n2) O(n)

Page 12: Monotone Drawings of Graphs

12

monotone drawings of graphs

• any graph admits a monotone drawing– consider a spanning tree T of the input graph– produce a monotone drawing of T– add the remaining edges

• the produced drawings may have crossings even if the input graph is planar

is it possible to have planar monotone drawings of planar graphs?

Page 13: Monotone Drawings of Graphs

13

biconnected graphs• a cut-vertex is a vertex such

that its removal produces a disconnected graph

• a biconnected graph does not have cut-vertices

• a separation pair of a biconnected graph is a pair of vertices whose removal produces a disconnected graph

• a split pair is either a separation pair or a pair of adjacent vertices

Page 14: Monotone Drawings of Graphs

14

SPQR-tree

u

v

Page 15: Monotone Drawings of Graphs

15

SPQR-tree

Q

u

v

Page 16: Monotone Drawings of Graphs

16

SPQR-tree

Q

u

v

Page 17: Monotone Drawings of Graphs

17

SPQR-tree

Q

Su

v

Page 18: Monotone Drawings of Graphs

18

SPQR-tree

Q

S

Q

u

v

Page 19: Monotone Drawings of Graphs

19

SPQR-tree

Q

S

Q P

Page 20: Monotone Drawings of Graphs

20

SPQR-tree

Q

Q

Q

Q Q

S

P

S

Page 21: Monotone Drawings of Graphs

21

SPQR-tree

Q

Q

Q

Q Q

S

P

Q Q Q Q Q

R

S

Page 22: Monotone Drawings of Graphs

22

SPQR-tree

Q

Q

Q

Q Q

S

P

Q Q Q Q Q

R

S

• each internal node of the tree is associated with a skeleton representing its configuration

• the graph represented by node into its parent is called the pertinent of

u

v

u

v

skeleton of S

Page 23: Monotone Drawings of Graphs

23

convex drawings are monotone• graphs admitting strictly convex drawings

[Chiba, Nishizeki, 88]– are biconnected – have an embedding such that each split pair u,v

• is incident to the outer face• all its maximal split components, with the possible exception

of edge (u,v), have at least one edge on the outer face

• any strictly convex drawing of a graph is monotone [Arkin, Connelly, Mitchell, SoCG ‘89]

• with similar techniques we show that– any non-strictly convex drawing of a graph such that

each set of parallel edges forms a collinear path is monotone

Page 24: Monotone Drawings of Graphs

24

strategy for biconnected graphs• we apply an inductive algorithm

to the nodes of the SPQR-tree• a node of the tree is

associated with a quadrilateral shape called boomerang of and denoted by boom()

• the pertinent of uses a “restricted” range of slopes

• the boomerangs of the children of are arranged into boom()

N

S

EW

Page 25: Monotone Drawings of Graphs

25

strategy for biconnected graphs

• invariants on boom()– symmetric with respect to

the line through W and E

– angle + 2 < /2

N

S

EW

Page 26: Monotone Drawings of Graphs

26

properties of the drawings• the inductive algorithm

constructs a drawing of pert() such that is monotone– is contained into boom()

• with the possible exception of the edge joining the poles of

– any vertex w of pert() belongs to a path that is a composition of

• a path toward N which is monotone with respect to dN and uses slopes in (dN-, dN+)

• a path toward S monotone w.r.t. dS and using slopes in (dS-, dS+)

N

E

S

W

dS

dN

Page 27: Monotone Drawings of Graphs

27

base case: Q-node

• if is a Q-node draw the corresponding edge as a segment from N to S

N

S

EW

Page 28: Monotone Drawings of Graphs

28

if is an S-node

• find the intersection between the two bisectors of angles

• arrange the boomerangs of the children as in the figure

• recur on the children using ’ + 2’ < /2

N

E

S

W

Page 29: Monotone Drawings of Graphs

29

if is a P-node

• split boom() into a suitable number of slices

• compute and for each slice

• recur on the children

N

E

S

W

Page 30: Monotone Drawings of Graphs

30

if is an R-node• remove the south pole and obtain

graph G’• observe that G’ admits a convex

drawing into any convex polygon• draw G’ into a suitable convex

polygon in the upper portion of boom()

• squeeze the drawing towards the N-E border of boom() in order to make sure that the drawing uses a restricted interval of slopes

• compute and for each child• recur on the children

N

E

S

W

Page 31: Monotone Drawings of Graphs

31

admitting planar and monotone drawings

admitting strictly convex drawings

planarbiconnected

planartriconnectedtrees

planar simply connected

?

?

??

?

?

Page 32: Monotone Drawings of Graphs

32

conclusions and open problems• address simply connected graphs• determine tight bounds on the area

requirements for grid drawings of trees• devise algorithms to construct monotone

drawings of non-planar graphs on a grid of polynomial size

• construct monotone drawings of biconnected graphs in polynomial area

• explore strongly monotone drawings, where each pair of vertices u,v has a joining path that is monotone with respect to the line from u to v

Page 33: Monotone Drawings of Graphs

33

change my embedding if you want me monotone

Page 34: Monotone Drawings of Graphs

34

thank you

thank you