Anchored Drawings of Planar Graphs Angelini, Da Lozzo, Di - - PowerPoint PPT Presentation

anchored drawings of planar graphs
SMART_READER_LITE
LIVE PREVIEW

Anchored Drawings of Planar Graphs Angelini, Da Lozzo, Di - - PowerPoint PPT Presentation

22nd International Symposium on Graph Drawing 24-26 September 2014, Wrzburg, Germany Anchored Drawings of Planar Graphs Angelini, Da Lozzo, Di Bartolomeo, Di Battista, Hong, Patrignani, Roselli Applicative Context Drawing a graph on a


slide-1
SLIDE 1

Anchored Drawings

  • f Planar Graphs

Angelini, Da Lozzo, Di Bartolomeo, Di Battista, Hong, Patrignani, Roselli

22nd International Symposium on Graph Drawing 24-26 September 2014, Würzburg, Germany

slide-2
SLIDE 2

Applicative Context

  • Drawing a graph on a geographical map
  • Vertices have fixed positions
slide-3
SLIDE 3

Drawing Nicely

  • Our idea:

○ Let vertices move “a bit” around their positions ○ Check if this allows a planar drawing of the graph

slide-4
SLIDE 4

Anchored Graph Drawing Problem

  • Instance

○ Planar graph G ○ Initial vertex positions α(v) ○ Maximum distance δ

  • Question

○ Does G admits a planar drawing ○ ...such that vertices move by distance at most δ ○ ...from their initial positions α?

slide-5
SLIDE 5

Considered Settings

Distance Function Drawing Style

“Euclidean” “Manhattan” “Uniform” d = (dx2 + dy2)1/2 d = dx + dy d = max(dx,dy) Straight-line Rectilinear

Vertex Region

dy dx dy dx dy dx

slide-6
SLIDE 6

Previous work

  • NP-hard: straight-line and disks of different size

  • Godau. On the difficulty of embedding planar graphs with inaccuracies. 1995
  • NP-hard: rectilinear and δ = inf

○ Garg, Tamassia. On the comp. compl. of upward and rectilinear planarity test. 2001

  • Application of force-directed algorithms

○ Abellanas et. al. Network drawing with geographical constraints on vertices. 2005

  • Iterative adjustments that preserve mental map

○ Lyons et. al. Algorithms for cluster busting in anchored graph drawing. 1998

slide-7
SLIDE 7

Assumption

  • No overlap between vertex regions

○ Or two vertices may invert their positions

■ Very confusing for a user

○ Relationship with Clustered Planarity with drawn clusters

slide-8
SLIDE 8

Our Results

Metric Straight-line Rectilinear Manhattan NP-hard NP-hard Euclidean NP-hard NP-hard Uniform NP-hard Polynomial

dx

slide-9
SLIDE 9

Our Results

Metric Straight-line Rectilinear Manhattan NP-hard NP-hard Euclidean NP-hard NP-hard Uniform NP-hard Polynomial

dx

slide-10
SLIDE 10

Polynomial Case

  • Connected graph
  • Uniform distance ( regions)
  • Rectilinear drawing
slide-11
SLIDE 11

Edge Pipes

  • We call pipe the convex hull of two regions

○ Minus the regions

  • An edge can be drawn only inside a pipe
  • In this setting pipes “get rectilinear” too
slide-12
SLIDE 12

Rectilinear Edges

  • An edge is either horizontal or vertical
  • Can be deduced by the region positions
  • Visibility is required between two endpoints
slide-13
SLIDE 13

Trimming

  • Regions and pipes can trim each other
  • A trimmed area cannot be used
slide-14
SLIDE 14

General Strategy

  • 1. Start from the initial region/pipe configuration
  • 2. While (a trim is possible):
  • a. Trim unusable parts of pipes and regions
  • b. Check if a negative configuration is obtained
  • 3. Flag the instance as positive
  • 4. Draw edges according to the current pipes
slide-15
SLIDE 15

Trimming Pipes

  • VP-overlaps can trim a pipe
slide-16
SLIDE 16

Trimming Regions

  • VP-overlaps can trim a region
slide-17
SLIDE 17

Negative Instances

PP-overlap (Unavoidable crossing) No visibility

slide-18
SLIDE 18

An Example of Execution

slide-19
SLIDE 19

An Example of Execution

slide-20
SLIDE 20

An Example of Execution

slide-21
SLIDE 21

An Example of Execution

slide-22
SLIDE 22

An Example of Execution

slide-23
SLIDE 23

NP-hard Case

  • Euclidean distance ( regions)
  • Straight-line drawing
  • Reduction from Planar 3-SAT
slide-24
SLIDE 24

Planar 3-SAT

(x1 ˅ ¬x2 ˅ x5) ˄ (x2 ˅ x3 ˅ ¬x4) ˄ (x1 ˅ ¬x3 ˅ x5) ˄ (x3 ˅ x4 ˅ x5) C1 C2 C3 C4 x1 x2 x3 x4 x5 c1 c2 c3 c4

slide-25
SLIDE 25

Planar 3-SAT - Gadgets

slide-26
SLIDE 26

Planar 3-SAT - Variable Gadget

slide-27
SLIDE 27

Planar 3-SAT - Clause Gadget

slide-28
SLIDE 28

Planar 3-SAT - Truth Propagation

slide-29
SLIDE 29

Planar 3-SAT - Not Gadget

slide-30
SLIDE 30

Planar 3-SAT - Turn Gadget

slide-31
SLIDE 31

Planar 3-SAT - Split Gadget

slide-32
SLIDE 32

Variable Gadget

True configuration False configuration

T F F T

slide-33
SLIDE 33

Truth Propagation

F T F T

slide-34
SLIDE 34

Not Gadget

F T F T

slide-35
SLIDE 35

Turn Gadget

F T F T

slide-36
SLIDE 36

Split Gadget

F T T F F T

slide-37
SLIDE 37

Clause Gadget

F T F T F T x y b a

F-T-T case The gadget is planar

slide-38
SLIDE 38

Clause Gadget

F T F T F T

F-F-F case The gadget is NOT planar

a b x y

slide-39
SLIDE 39

Clause Gadget

F T F T F T

slide-40
SLIDE 40

Clause Gadget

F T F T F T

slide-41
SLIDE 41

Clause Gadget

F T F T F T

slide-42
SLIDE 42

Clause Gadget

F T F T F T

slide-43
SLIDE 43

Clause Gadget

F T F T F T

slide-44
SLIDE 44

Clause Gadget

F T F T F T

slide-45
SLIDE 45

Open Problems

  • Do the hard problems belong to NP?
  • Still hard with biconnected gadgets. What if

triconnected?

  • What if we allow regions to partially overlap?
  • What if we allow some crossings?
slide-46
SLIDE 46

Applicative Context

  • Drawing a graph on a geographical map
  • Vertices have fixed positions
slide-47
SLIDE 47

Clause Gadget (master slide)

F T F T F T

slide-48
SLIDE 48

Challenges

  • Vertex cluttering, edge crossings
  • Techniques exist to mitigate cluttering
  • However, crossings are still an issue