Lecture 5
Lecture 5
Lecture 5
Definition
A graph is called planar if it can be drawn in the plane without any edges
crossing (except endpoints). Such a drawing is called a planar representation of
the graph.
Example,
𝐾𝐾4 is planar because it is possible to draw it in a different way without
crossings.
𝑅𝑅3
𝑅𝑅4
𝑅𝑅1
𝑅𝑅2
Theorem 1
If 𝐺𝐺 = (𝑉𝑉, 𝐸𝐸) is a connected planar simple graph, and 𝑉𝑉 ≥ 3,
then 𝐸𝐸 ≤ 3 𝑉𝑉 − 6.
Theorem 2
If 𝐺𝐺 = (𝑉𝑉, 𝐸𝐸) is a connected planar simple graph, then it has
vertex of degree ≤ 5.
Theorem 3
If 𝐺𝐺 = (𝑉𝑉, 𝐸𝐸) is a connected planar simple graph, with 𝑉𝑉 ≥ 3 ,
and it has no cycles of length 3 , then 𝐸𝐸 ≤ 2 𝑉𝑉 − 4.
𝑲𝑲𝟓𝟓 is not planar.
Proof.
𝐾𝐾5 has 5 vertices and 10 edges.
If 𝐾𝐾5 is planar then according to Theorem 1 it would satisfy
the condition 𝐸𝐸 ≤ 3 𝑉𝑉 − 6 , but this is not true.
𝑓𝑓
𝑐𝑐 𝑑𝑑 𝑒𝑒 𝑐𝑐 𝑑𝑑 𝑒𝑒
We say that graph 𝐺𝐺𝐺 is obtained from the graph 𝐺𝐺 by subdivision of
edges if there exists a sequence of graphs 𝐺𝐺 = 𝐺𝐺0 , 𝐺𝐺1 , ⋯ , 𝐺𝐺𝑘𝑘 = 𝐺𝐺𝐺 ,
such that 𝐺𝐺𝑖𝑖 is obtained from 𝐺𝐺𝑖𝑖−1 by an elementary subdivision of an
edge (𝑖𝑖 = 1, ⋯ , 𝑘𝑘).
Theorem (Kuratowski -Pontryagin)
A graph is planar if and only if it does not contain a subgraph
obtained from 𝐾𝐾5 or 𝐾𝐾3,3 by subdivision of edges.
Directed graphs
Definition
The ordered pair 𝐷𝐷 = (𝑉𝑉, 𝐸𝐸) is directed graph (digraph), where
𝑉𝑉 = {𝑣𝑣1 , 𝑣𝑣2 , ⋯ , 𝑣𝑣𝑛𝑛 } is a finite nonempty set, the elements of which
are called vertices or nodes, and 𝐸𝐸 = {𝑒𝑒1 , 𝑒𝑒2 , ⋯ , 𝑒𝑒𝑚𝑚 } is a set of
ordered pairs of vertices, the elements of which are called directed
edges or arcs.
If a directed graph does not contain loops and multiple edges, then it
is called directed simple graph.
In the geometrical representation: the arc (𝑢𝑢, 𝑣𝑣) is drawn as
an arrow from 𝑢𝑢 to 𝑣𝑣 .
𝑢𝑢 𝑣𝑣
The edges (𝑢𝑢1 , 𝑣𝑣1 ) and 𝑢𝑢2 , 𝑣𝑣2 are incident, if either 𝑣𝑣1 = 𝑢𝑢2
or 𝑣𝑣2 = 𝑢𝑢1 .
𝑢𝑢1 𝑣𝑣1 =𝑢𝑢2 𝑣𝑣1
𝑢𝑢1 = 𝑣𝑣2
𝑣𝑣2
𝑢𝑢2
In directed graphs the number of edges, for which a
vertex 𝑣𝑣 is terminal vertex, is denoted by deg − (𝑣𝑣), this is
in-degree of vertex 𝑣𝑣 ; and the number of edges for which
vertex 𝑣𝑣 is initial vertex is denoted by deg + (𝑣𝑣) , this is
out-degree of vertex 𝑣𝑣.
𝑣𝑣
𝑣𝑣
𝑏𝑏 deg − 𝑎𝑎 =0
𝑎𝑎 𝑐𝑐 deg + 𝑎𝑎 =3
deg − b =2
deg + b =1
deg − 𝑐𝑐 =2
deg + 𝑐𝑐 =1
deg − 𝑑𝑑 =2
deg + 𝑑𝑑 =2
𝑒𝑒 𝑑𝑑 deg − 𝑒𝑒 =2
deg + 𝑒𝑒 =1
Definition
The directed graphs 𝐷𝐷 = (𝑉𝑉, 𝐸𝐸) and 𝐷𝐷′ = (𝑉𝑉𝑉, 𝐸𝐸𝐸) are called
isomorphic if there is a bijection 𝑓𝑓: 𝑉𝑉 → 𝑉𝑉𝑉 between their
vertex sets 𝑉𝑉 and 𝑉𝑉𝑉 such that for arbitrary vertices 𝑣𝑣𝑖𝑖 , 𝑣𝑣𝑗𝑗 ∈ 𝑉𝑉
(𝑣𝑣𝑖𝑖 , 𝑣𝑣𝑗𝑗 ) ∈ 𝐸𝐸 if and only if 𝑓𝑓 𝑣𝑣𝑖𝑖 , 𝑓𝑓(𝑣𝑣𝑗𝑗 ) ∈ 𝐸𝐸𝐸.
Example, 𝑓𝑓: 𝑢𝑢1 , 𝑢𝑢2 , 𝑢𝑢3 , 𝑢𝑢4 → {𝑣𝑣1 , 𝑣𝑣2 , 𝑣𝑣3 , 𝑣𝑣4 }
𝑢𝑢1 𝑢𝑢2 𝑣𝑣2
𝑣𝑣1
𝑓𝑓 𝑢𝑢1 = 𝑣𝑣3
𝑓𝑓 𝑢𝑢3 = 𝑣𝑣1
𝑓𝑓 𝑢𝑢4 = 𝑣𝑣4 𝑢𝑢3 𝑢𝑢4
𝑣𝑣3 𝑣𝑣4
𝑓𝑓 𝑢𝑢2 = 𝑣𝑣2
Theorem
If 𝐷𝐷 = (𝑉𝑉, 𝐸𝐸) is a directed graph then
∑𝑣𝑣∈𝑉𝑉 deg − (𝑣𝑣) = ∑𝑣𝑣∈𝑉𝑉 deg + 𝑣𝑣 = 𝐸𝐸 .
Proof. Both ∑𝑣𝑣∈𝑉𝑉 deg − (𝑣𝑣) and ∑𝑣𝑣∈𝑉𝑉 deg + (𝑣𝑣) count the number of
arcs exactly once.
𝑏𝑏
deg − 𝑎𝑎 =0
𝑐𝑐
deg + 𝑎𝑎 =3
𝑎𝑎
deg − b =2
deg + b =1
deg − 𝑐𝑐 =2
deg + 𝑐𝑐 =1
deg − 𝑑𝑑 =2
deg + 𝑑𝑑 =2
deg − 𝑒𝑒 =2
𝑒𝑒 𝑑𝑑
deg + 𝑒𝑒 =1
Adjacency matrix
The adjacency matrix of a simple directed graph 𝐷𝐷 = (𝑉𝑉, 𝐸𝐸) with 𝑛𝑛
vertices: 𝑉𝑉 = {𝑣𝑣1 , ⋯ , 𝑣𝑣𝑛𝑛 } is an 𝑛𝑛 × 𝑛𝑛 binary matrix 𝐴𝐴 = (𝑎𝑎𝑖𝑖,𝑗𝑗 ) , where
𝑎𝑎𝑖𝑖,𝑗𝑗 = 1 if (𝑣𝑣𝑖𝑖 , 𝑣𝑣𝑗𝑗 ) ∈ 𝐸𝐸, and 𝑎𝑎𝑖𝑖,𝑗𝑗 = 0, otherwise.
The adjacency matrix 𝐴𝐴 for a directed graph does not have to be symmetric,
because, there may not be an edge from 𝑣𝑣𝑖𝑖 to 𝑣𝑣𝑗𝑗 when there is an edge from
𝑣𝑣𝑗𝑗 to 𝑣𝑣𝑖𝑖 . And for simple graphs – the diagonal consists of 0s
Example, 𝑉𝑉 = {𝑎𝑎, 𝑏𝑏, 𝑐𝑐, 𝑑𝑑, 𝑒𝑒}, 𝐸𝐸 = { 𝑎𝑎, 𝑏𝑏 , 𝑎𝑎, 𝑐𝑐 , 𝑎𝑎, 𝑒𝑒 , 𝑏𝑏, 𝑑𝑑 , 𝑐𝑐, 𝑏𝑏 , 𝑑𝑑, 𝑐𝑐 , 𝑑𝑑, 𝑒𝑒 , (𝑒𝑒, 𝑑𝑑)}
𝑏𝑏
𝑎𝑎 𝑏𝑏 𝑐𝑐 𝑑𝑑 𝑒𝑒 𝑎𝑎 𝑐𝑐
𝑎𝑎 0 1 1 0 1
𝑏𝑏 0 0 0 1 0
𝑐𝑐 0 1 0 0 0
𝑑𝑑 0 0 1 0 1
𝑒𝑒 0 0 0 1 0 𝑒𝑒 𝑑𝑑
Incidence matrix
The incidence matrix of a directed graph which has 𝑛𝑛 vertices: 𝑉𝑉 = {𝑣𝑣1 , ⋯ , 𝑣𝑣𝑛𝑛 }
and 𝑚𝑚 edges: 𝐸𝐸 = {𝑒𝑒1 , ⋯ , 𝑒𝑒𝑚𝑚 } , - is the matrix 𝐴𝐴 = {𝑎𝑎𝑖𝑖,𝑗𝑗 } with 𝑚𝑚 rows and 𝑛𝑛
columns, such that,
if 𝑒𝑒𝑖𝑖 = (𝑣𝑣𝑗𝑗 ′ , 𝑣𝑣𝑗𝑗′′ ) is an edge then 𝑎𝑎𝑖𝑖,𝑗𝑗՛ = −1 and 𝑎𝑎𝑖𝑖,𝑗𝑗՛՛ = 1, i.e.
the edge 𝑒𝑒𝑖𝑖 = 𝑣𝑣𝑗𝑗 ′ , 𝑣𝑣𝑗𝑗 ′′ assigns −𝟏𝟏 to the (𝑖𝑖, 𝑗𝑗 ′ ) -th cell of the matrix, and
assigns 𝟏𝟏 to the (𝑖𝑖, 𝑗𝑗 ′′ ) -th cell of the matrix; to all remaining cells is assigned 𝟎𝟎.
In this way, there are 2 nonzero elements in each row of the matrix.
1 𝑒𝑒4 1 2 3 4
4 𝑒𝑒1 -1 1 0 0
𝑒𝑒3 0 -1 1 0
𝑒𝑒1 𝑒𝑒2
𝑒𝑒5 𝑒𝑒3 -1 0 1 0
2 𝑒𝑒4 -1 0 0 1
3
𝑒𝑒2 0 0 -1 1
𝑒𝑒5
Let 𝐷𝐷 = (𝑉𝑉, 𝐸𝐸) be a directed graph. A sequence of its
vertices 𝑣𝑣1 , 𝑣𝑣2 , ⋯ , 𝑣𝑣𝑘𝑘−1 , 𝑣𝑣𝑘𝑘 is called a directed path from
the vertex 𝑣𝑣1 to the vertex 𝑣𝑣𝑘𝑘 , if
𝑣𝑣1 , 𝑣𝑣2 , 𝑣𝑣2 , 𝑣𝑣3 , ⋯ , (𝑣𝑣𝑘𝑘−1 , 𝑣𝑣𝑘𝑘 ) are distinct arcs in 𝐸𝐸.
Note that the terminal vertex of an edge in a path is the initial
vertex of the next edge in the path.
Path length is the number of edges in the path.
We say that the path for 𝑣𝑣1 to 𝑣𝑣𝑘𝑘 is simple path, if there is
no repeated vertices in the path.