Docsity

Non-Planar Graphs - Data Structures - Lecture Slides, Slides of Data Structures and Algorithms

Partial preview of the text

Download Non-Planar Graphs - Data Structures - Lecture Slides and more Slides Data Structures and Algorithms in PDF only on Docsity!

Planar / Non-Planar Graphs

Definitions

  • Planar – graph that can be drawn without edges that intersect within a plane
  • Non-Planar – graph that cannot be drawn without edges that intersect within a plane

Three Houses / Three Utilities

  • Q. Suppose we have three houses and three utilities. Is it possible to connect each utility to each of three houses without any lines crossing?
  • Planar or Non-Planar?
  • This is also known as K(3,3) bipartite graph

Another definition

  • Region – The area bounded by a subset of the vertices and edges of a graph
  • Note: the outside area of a graph also counts as a region. Therefore a tree has one region, a simple cycle has two regions.

Commonly Used Variables

  • Variables used in following mathematical proofs
  • G = an arbitrary graph
  • P = number of vertices
  • Q = number of edges
  • R = number of regions
  • n = number of edges that bound a region
  • N = sum of n for all regions of G

First Theorem

  • Let G be a connected planar graph
  • p = vertices, q = edges, r = regions
  • Then p – q + r = 2
  • Theorem is by Euler
  • Proof can be made by induction

Proof: q <= 3p – 6

  • For each region in graph, n = number of edges to form boundary of its region. Sum of all these n’s in graph = N
  • N >= 3r must be true, since all regions need at least 3 edges to form them.
  • N <= 2q must be true, since no edge can be used more than twice in forming a region

(con’t) Proof: q <= 3p – 6

  • 3r <= N <= 2q
  • Solve p – q + r = 2 for r, then substitute
  • 3(-p +q + 2) <= 2q
  • q <= 3p – 6 is simplified answer

(con’t) Proof of K(3,3)

  • For K(3,3) p=6, q= 9, r= ??
  • 4r <= N <= 2q
  • 4r <= (2q = 2 * 9 = 18)
  • r <= 4.
  • Using first theorem of planar graphs, p – q + r = 2
  • 6 – 9 + r = 2
  • r = 5
  • Proof by contradiction:
  • r cannot be both equal to 5 and less than 4.
  • Therefore, K(3,3) is a non-planar graph

Complete Graphs

  • Denoted by Kp
  • All vertices are connected to all vertices
  • q = p * (p - 1) / 2

More Definitions

  • Isomorphic – one-to-one maping of two graphs, such that they are equivalent
  • Subgraph – a graph which is contained as part of another equivalent or greater graph
  • Supergraph – if G’ is a subgraph of G, then G is said to be a supergraph of G’

Subdivisions of graph G

  • Subdivision – a graph obtained from a graph G, by inserting vertices of degree two into any edge
  • (H is a valid subdivision of G, while F is not)

Peterson Graph

Using Kuratowski

  • Q. Is Peterson graph non-planar?
  • A. We can use Kuratowski theorem to pick apart the graph until we find K5 or K(3,3). (solution given on chalkboard)