planarity testing of graphs
play

Planarity Testing of Graphs Swami Sarvottamananda Ramakrishna - PowerPoint PPT Presentation

Planarity Testing of Graphs Planarity Testing of Graphs Swami Sarvottamananda Ramakrishna Mission Vivekananda University NITPatna-IGGA, 2011 Planarity Testing of Graphs Outline I Introduction 1 Scope of the Lecture Motivation for Planar


  1. Planarity Testing of Graphs Planarity Testing of Graphs Swami Sarvottamananda Ramakrishna Mission Vivekananda University NITPatna-IGGA, 2011

  2. Planarity Testing of Graphs Outline I Introduction 1 Scope of the Lecture Motivation for Planar Graphs Problem Definition Charecterisation of Planar Graphs 2 Euler’s Relation for Planar Graphs Kuratowski’s and Wagner’s Theorems Proof of Kuratowski’s Theorem Planarity Testing 3 Outline of Planarity Testing Algorithm for Planarity Testing Planar Embedding 4 Conclusion 5

  3. Planarity Testing of Graphs Introduction Introduction

  4. Planarity Testing of Graphs Introduction Scope Scope of the lecture Characterisation of Planar Graphs: First we introduce planar graphs, and give its characterisation alongwith some simple properties.

  5. Planarity Testing of Graphs Introduction Scope Scope of the lecture Characterisation of Planar Graphs: First we introduce planar graphs, and give its characterisation alongwith some simple properties. Planarity Testing: Next, we give an algorithm to test if a given graph is planar using the properties that we have uncovered.

  6. Planarity Testing of Graphs Introduction Scope Scope of the lecture Characterisation of Planar Graphs: First we introduce planar graphs, and give its characterisation alongwith some simple properties. Planarity Testing: Next, we give an algorithm to test if a given graph is planar using the properties that we have uncovered. Planar Embedding: Lastly we see how a given graph can be embedded in a plane using straight lines.

  7. Planarity Testing of Graphs Introduction Motivation for Planar Graphs What are Planar Graphs—Drawings? Definition (Drawing) Given a graph G = ( V, E ) , a drawing maps each vertex v ∈ V to a distinct point Γ( v ) in plane, and each edge e ∈ E, e = ( u, v ) to a simple open jordan curve Γ( u, v ) with end points Γ( u ) , Γ( v ) . Γ( a ) Γ( b ) a e b Γ( e ) Γ( c ) d c Γ( d ) Figure: Drawing of a graph

  8. Planarity Testing of Graphs Introduction Motivation for Planar Graphs What are Planar Graphs—Non-crossing Drawings? Definition (Planar Graphs) Given a graph G = ( V, E ) , G is planar if it admits a drawing such that no two distinct drawn edges intersect except at end points. Γ( a ) Γ( b ) a e b Γ( e ) Γ( c ) d c Γ( d ) Figure: Planar drawing of a graph

  9. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Motivation

  10. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Properties of Planar Graph There are number of interesting properties of planar graphs. They are sparse.

  11. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Properties of Planar Graph There are number of interesting properties of planar graphs. They are sparse. They are 4-colourable.

  12. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Properties of Planar Graph There are number of interesting properties of planar graphs. They are sparse. They are 4-colourable. A number of operations can be performed on them very efficiently.

  13. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Properties of Planar Graph There are number of interesting properties of planar graphs. They are sparse. They are 4-colourable. A number of operations can be performed on them very efficiently. They can be efficiently stored (A data structure called SPQR -trees even allows O (1) flipping of planar embeddings).

  14. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Properties of Planar Graph There are number of interesting properties of planar graphs. They are sparse. They are 4-colourable. A number of operations can be performed on them very efficiently. They can be efficiently stored (A data structure called SPQR -trees even allows O (1) flipping of planar embeddings). There size including faces, edges and vertices is O ( n ) .

  15. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Applications of Planar Graph Planar graphs are extensively used in Electrical, Mechanical and Civil engineering. Easy to visualize. In fact, crossing of edges is the main culprit for reducing comprehensibility.

  16. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Applications of Planar Graph Planar graphs are extensively used in Electrical, Mechanical and Civil engineering. Easy to visualize. In fact, crossing of edges is the main culprit for reducing comprehensibility. VLSI design, circuit needs to be on surface: lesser the crossings, better is the design.

  17. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Applications of Planar Graph Planar graphs are extensively used in Electrical, Mechanical and Civil engineering. Easy to visualize. In fact, crossing of edges is the main culprit for reducing comprehensibility. VLSI design, circuit needs to be on surface: lesser the crossings, better is the design. Highspeed Highways/Railroads design, crossings are always problematic.

  18. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Applications of Planar Graph Planar graphs are extensively used in Electrical, Mechanical and Civil engineering. Easy to visualize. In fact, crossing of edges is the main culprit for reducing comprehensibility. VLSI design, circuit needs to be on surface: lesser the crossings, better is the design. Highspeed Highways/Railroads design, crossings are always problematic. Irrigation canals, crossings simply not admissible.

  19. Planarity Testing of Graphs Introduction Motivation for Planar Graphs Applications of Planar Graph Planar graphs are extensively used in Electrical, Mechanical and Civil engineering. Easy to visualize. In fact, crossing of edges is the main culprit for reducing comprehensibility. VLSI design, circuit needs to be on surface: lesser the crossings, better is the design. Highspeed Highways/Railroads design, crossings are always problematic. Irrigation canals, crossings simply not admissible. Most of facility location problems on maps are actually problems of planar graphs.

  20. Planarity Testing of Graphs Introduction Problem Definition Problem Definition

  21. Planarity Testing of Graphs Introduction Problem Definition Problem Definition: Planarity Testing Problem (Decision Problem) Given a graph G = ( V, E ) , is G planar, i.e., can G be drawn in the plane without edge crossings?

  22. Planarity Testing of Graphs Introduction Problem Definition Problem Definition: Planar Embedding Problem (Computation Problem) Given a graph G = ( V, E ) , if G is planar, how can G be drawn in the plane such that there are no edge crossings? I.e., compute a planar representation of the graph G .

  23. Planarity Testing of Graphs Introduction Problem Definition Question: K 4 Is the following graph planar ( K 4 )? 1 2 4 3 Figure: Graph K 4

  24. Planarity Testing of Graphs Introduction Problem Definition Planarity of K 4 Yes K 4 is planar. 1 2 4 3 Figure: Planar graph K 4

  25. Planarity Testing of Graphs Introduction Problem Definition Question: K 5 and K 3 , 3 Are the following graphs planar? 3 1 2 5 2 3’ 1 2’ 1’ 4 3

  26. Planarity Testing of Graphs Introduction Problem Definition Answer for K 5 and K 3 , 3 No, they aren’t. There always will be at least one crossing. 3 1 2 5 2 3’ 1 2’ 1’ 4 3 Full proofs by Euler’s celebrated theorem.

  27. Planarity Testing of Graphs Introduction Problem Definition Question Is the following graph planar? There are so many crossings ( O ( n 2 ) ). 1 2 23 22 3 21 4 20 5 19 18 6 7 17 8 16 9 15 14 10 12 11 13 Figure: a hamiltonian graph

  28. Planarity Testing of Graphs Introduction Problem Definition Answer Yes! It is. 1 2 3 21 23 4 18 22 17 19 20 7 15 14 13 12 16 8 5 6 9 10 11 Figure: Planar embedding of the last graph But how to arrive at the answer?

  29. Planarity Testing of Graphs Charecterisation of Planar Graphs Characterisation of Planar Graphs

  30. Planarity Testing of Graphs Charecterisation of Planar Graphs Basic Assumptions We assume that our graphs are connected and there are no self loops and no multi-edges. Disconnected graphs, 1-degree vertices, multi-edges can be easily dealt with.

  31. Planarity Testing of Graphs Charecterisation of Planar Graphs Euler’s Relation for Planar Graphs Euler’s Relation Theorem (Euler’s Relation) Given a plane graph with n vertices, m edges and f faces, we have n − m + f = 2 . Fact The exterior is also counted as a face. The above relation also applies to simple polyhedrons with no holes. Euler formula gives the necessary condition for a graph to be planar[3].

  32. Planarity Testing of Graphs Charecterisation of Planar Graphs Euler’s Relation for Planar Graphs Euler’s Relation: Corollary 1 Figure: Octahedron; n = 6 , m = 12 ≤ 3 n − 6 Corollary For a maximal planar graph, where each face is a triangle, we have m = 3 n − 6 , and therefore, for any graph with at least three vertices, we have m ≤ 3 n − 6 . Proof: � x ∈ F e x = 2 m and therefore since e x ≥ 3 , 2 m ≥ 3 f .

  33. Planarity Testing of Graphs Charecterisation of Planar Graphs Euler’s Relation for Planar Graphs Non-planarity of K 5 Lemma K 5 is non-planar. Proof: n = 5 , m = 10 > 3 n − 6 = 9 .

Recommend


More recommend