Graph Theory
Graph Theory
1
How about this
one?
2
Definitions:
This node
has degree Note: Each loop
5. counts as two
edges emanating
connected graph from a node.
3
Picture only what is
essential to the problem.
5
1
Original:
2 3
4
Redrawn: 2
4 1
3
You can redraw the original picture as
long as for every edge between nodes i
and j in the original you put an edge
between nodes i and j in the redrawn
version (and you put no other edges in 6
Has no tour that uses each edge
exactly once.
9
Theorem (Euler):
1. A connected graph G is
Eulerian
G is connected and has no
vertices of odd degree
2. A connected graph G is has
an Euler trail from node a to
some other node b
G is connected and a b are
the only two nodes of odd
10
degree
A directed graph is a graph
where each edge is directed
from one of its endpoints to the
other.
Example:
12
Yes.
Can we give a
characterization of
Hamiltonian graphs that is as
simple as the one for Eulerian
graphs?
15
No one knows. Deciding if
a graph is Hamiltonian is
NPcomplete.
16
Bipartite Graphs
A bipartite graph is a graph G whose vertex set V can be partitioned
into two non empty sets V1 and V2 in such a way that every edge of G
joins a vertex in V1 to a vertex in V2.
17
Bipartite Graphs
If V1 has r vertices and V2 has s vertices then the complete bipartite
graph is written as Kr,s.
18
Examples: Bipartite Graphs
Graph between courses and class rooms. Application?
19
Isomorphism
Let G1 and G1 be two graphs and let f be a function from the vertex set
of G1 to the vertex set of G2. Suppose that
Then we say that the function f is an isomorphism and that the two
graphs G1 and G2 are isomorphic.
20
Isomorphism
So two graphs G1 and G2 are isomorphic if there is a one-to-one
correspondence between vertices of G1 and those of G2
with the property that if two vertices of G1 are adjacent then so are
their images in G2.
4 5 6 6 5 4
4 5 6 4 5 6
1 3 2 3 1 2
n! x n!
4 5 6
3! X 3! = 36
4 5 6
2 1 3 3 2 1
4 5 6 4 5 6 22
Planarism & Platonic Graph
When a graph can be drawn without any of the edges crossing we
say that it is a planar graph
The Graph K5
We say that a graph G1 is a subgraph of a graph G2 if G1 is
isomorphic to a graph all of whose vertices and edges are in G2.
How many K in a K ?