Aph Theory - Fundamental Concepts
Aph Theory - Fundamental Concepts
Licence L2
Z.GUELLIL
Chapter 1
Fundamental Concepts
Z.GUELLIL
History (1/3)
• Euler (1735) mathematical curiosity: Start from one bank, cross the seven bridges of the city of
KÖNESBERG (Germany) once and only once and return to the starting point.
• The Irish mathematician Sir William Hamilton (1805-1865) worked on the travelling salesman
problem.
• Francis Guthrie (1852), a South African mathematician, stated the four-colour problem during a
discussion with his brother, who asked his teacher Auguste De Morgan if any map could be
coloured with four colours so that neighbouring countries had different colours.
3
History (2/3)
• Julius Petersen at the end of the 19th century was interested in spanning
subgraphs, that is, graphs containing all the vertices but only some of the
edges. We saw the emergence of graph factorisation problems in this way. A
spanning subgraph is called a k-factor if each of its vertices has k edges, and
the first theorems were given.
• In the mid-19th century, the British mathematician Arthur Cayley became
interested in trees, a special type of graph that does not have a cycle, i.e. in
which it is impossible to return to a starting point without going in the
opposite direction.
Graph Theory 4
History (3/3)
• But it was only with the Second World War that the practice was organized
for the first time and acquired its name.
• In 1940, Patrick Blackett was called by the British general staff to lead the first
operational research team to solve certain problems such as the optimal
location of surveillance radars.
• From 1946 onwards, TG experienced intense development thanks to
researchers motivated by the resolution of concrete problems.
• Among them, Esdger Djikstra (1959) for the routing problem, Ford and
Fulkerson (1956) for the maximum flow problem .
• Bernard Roy (1958) developed the MPM method for the scheduling problem.
Graph Theory 5
Graph Theory
• Graph theory is a powerful set of tools for modeling and solving real-world
problems.
• Definition :
• A Graph is a collection of vertices (nodes) and edges (links) connecting pairs of vertices.
• A graph is used to describe a set of objects and their relationships, that is to say the links
(edges) between the objects ( nodes /vertices).
• A graph ( G ), denoted as ( G = (X, U) ), is defined by:
• A finite set of vertices ( X ): The fundamental units or points in the graph.
• A finite set of edges/arcs ( U ): Each edge/arc connects a pair of vertices in ( X ).
Graph Theory 6
Undirected graph
• An undirected graph G is a pair (V, E).
• V is a (finite) set of objects. The elements of V are called the vertices of the graph.
• E is a subset of VxV . The elements of E are called the edges of the graph.
• An edge "e" of the graph is a pair e=(x , y) = (y, x) of vertices.
• Vertices x and y are the endpoints of the edge.
𝐸 ={……}
𝑉 ={……}
I.2. Degree of a vertex/graph
• Two vertices x and y are adjacent if there exists the edge ( x,y ) in E . The
vertices x and y are then said to be neighbors
• An edge is incident to a vertex x if x is one of its endpoints.
• The degree of a vertex x of G is the number of edges incident to x . It is
denoted d (x) .
• For a simple graph the degree of x also corresponds to the number of vertices
adjacent to x .
• For a simple graph of order n, the degree of a vertex is an integer between 0
and n-1
• A vertex of degree 0 is said to be isolated : it is not connected to any other
vertex.
Example
Vertex Degree
a 1
b 2
c
d 5
e
f
g
h
Degree of a vertex/graph
• Property 1: The sum of the degrees of the vertices of a graph is equal
to 2 times its number of edges. σ𝑥∈𝑉 𝑑(𝑥) = 2 ∗ ||𝐸||
C D
• m: 4 D
• m: 4 A
•n:3 A •n:5 B
1 2 3 4 5
1 0 1 1 0 0
2 -1 0 -1 1 0
3 -1 1 0 -1 -1
4 0 -1 1 0 1
5 0 0 1 1 0
Graph Representation 3/3
Adjacency Lists: The arc adjacency list A(i) of a node “I” is the set of arcs
emanating from this node i.e. the list of arcs ( i, j ) ∈ A. Similarly, the node
adjacency list of a node “i” is the set of nodes “j” such that ( i, j ) ∈ A.
Representation of undirected graphs
• An arc ( i, j ) belongs to an undirected graph, both pairs ( i, j ) and ( j, i ) must
be included in the representation.
• In the incidence matrix, the column corresponding to arc ( i, j ) will have +1 in
both rows “i” and “j”.
• The adjacency matrix will have +1 in position hij and hji for each arc (i, j ) ∈ A.
• And since the matrix will be symmetrical, we can store its half.
• When an update is made for one arc, we also need to update the other arc as
well.
Special graphs : Eulerian graph
• A Eulerian cycle of a graph G is a cycle passing once and only once through each of the
edges of G .
• A graph is said to be Eulerian if it has an Eulerian cycle.
• More simply, we can say that a graph is Eulerian if it is possible to draw the graph
without lifting the pencil and without passing twice over the same edge.
• Theorem 1 (Euler, 1736) : Graph G(V, E) is Eulerian if and only if G is connected (except
for possible isolated vertices) and the degree of every vertex in G is even.
• Claim 2 G has an Eulerian path iff it is connected and only two of its vertices have odd
degrees.
• Claim 3 Let G(V, E) be a directed graph. G has an Eulerian circuit iff :
o G is connected
o ∀v ∈ V , indegree(v) = outdegree(v)
Special graph: Hamiltonians graph
• We call Hamiltonian cycle of a graph G a cycle passing once and only once
through each of the vertices of G .
• A graph is said to be Hamiltonian if it has a Hamiltonian cycle .
• Properties
• a graph with a vertex of degree 1 cannot be Hamiltonian
• if a vertex in a graph is of degree 2, then the two edges incident to this vertex must be
part of the Hamiltonian cycle
• complete graphs are Hamiltonian .
• Diracs theorem : Given G = (V, E), |V | = n, if the minimum degree(G) ≥ n/2
then G is Hamiltonian.
Special graph: Hamiltonians graph
• Theorem Let
G be a simple graph of order n ≥ 3. If for any pair { x , y } of non-adjacent
vertices, we have d ( x ) + d ( y ) ≥ n , then G is Hamiltonian .
• Corollary Let : G be a simple graph of order n ≥ 3. If for every vertex x of G ,
we have d ( x ) ≥ n/2 , then G is Hamiltonian.
• Indeed, such a graph verifies the conditions of the previous theorem,
because if x and y are not adjacent, we have: d ( x ) + d ( y ) ≥ n/2 + n/2 = n
Special graphs: Planar graphs
• A graph is said to be planar if it can be drawn in the plane such that
its edges do not intersect.
• Definition In a topological planar graph, the areas bounded by edges
that surround them are called "faces".
Special graphs: Planar graphs
Let S be the number of vertices of a topological planar
graph, A its number of edges and F its number of faces.
• Property
1. In any connected topological planar graph, we have
F = A – S + 2.
2. Any connected topological planar graph with S
vertices and whose smallest face has P edges
contains at most (S-2) p/(p-2) edges.
3. Any connected planar graph with S vertices contains
at most 3(S-2) edges.
Special graphs: Planar graphs
• Example:
The graph below cannot be planar since 3(S-2) is 9 while
A is 10.
• Property 4 ( Manori )
Any connected planar graph with S vertices and no
triangles contains at most 2(S-2) edges.
Bipartite graphs
• A bipartite graph is a graph whose set of vertices can be partitioned
into two parts X and Y such that any edge has one endpoint in X and
the other in Y .
• Application example
• a set X ={x1, x2,..., xn } of candidates
• a set Y={y1, y2,..., ym } of jobs
Bipartite graphs
Definition A proper coloring of G is a function associating a color to any vertex
of G , such that no two adjacent vertices have the same color.
• A graph G is k -colorable if there exists a proper coloring of G with k colors.
• A graph is bipartite if it is 2-colorable.
• A graph is bipartite if and only if it does not contain any cycles of odd length .