Professional Documents
Culture Documents
01 Concept of Graphs
01 Concept of Graphs
INFORMATIQUE 3 •
•
Looking for the best strategy;
Optimization (shortest path, GPS, minimum cost, task
scheduling ...);
Use cases:
• Transportation networks (highways, railroads,
http://www.larbiguezouli.com
subways, airlines ...);
• Energy transport (electricity, gas ...);
• Transport of information: internet, social networks ...
2
By Pr Larbi GUEZOULI
INTRODUCTION TO GRAPH
INFORMATIQUE 3
THEORY
• Introduction to graph theory [9 Courses + 9 TDs] 1. The concept of graphs
1. The concept of graphs
2. Basic algorithms in graph theory In everyday life, to explain a problem, we use a graph,
• The shortest path
• The flows for example: to draw a path, a family tree, the
3. The basic concepts of trees
organigram of an institution, ...
• Introduction to linear programming [6 Courses + 6 TDs]
1. The concept of linear programming (variables, constraints and This means that we are all familiar with the notion of
objective function) a graph.
2. Graphical solution of linear programming problems with two
variables We can say that a graph is a method of thinking that
3. Solving linear problems by the simplex method
allows for modeling a problem.
4. Duality: Definitions and basic concepts
Evaluation:
Interrogations
Homework
Practical work
Final exam 3 4
INTRODUCTION TO GRAPH INTRODUCTION TO GRAPH
THEORY THEORY
1. The concept of graphs (next) 1. The concept of graphs (next)
Example: Leonhard Euler posed a walking problem in He tries to find out if he can walk through the
his city Königsberg (today called Kaliningrad) in Russia. streets of Königsberg passing once and only once over
each bridge, and return to his starting point.
Leonhard Euler
(1707-1783)
5 6
7 8
INTRODUCTION TO GRAPH INTRODUCTION TO GRAPH
THEORY THEORY
1.2. Graph properties 1.2. Graph properties (next)
The order of a graph is the number of nodes The degree of a node (vertex) is the number of
(vertices) in the graph. edges having an endpoint at that node. For example, the
A loop is an edge connecting a node (vertex) to itself. nodes of the following graph are all of degree 3.
An isolated node (vertex) is a node not connected to
other nodes.
Two nodes (vertices) are adjacent if they are
connected by an edge.
An arc is an oriented edge.
9 10
5 4 5 4
pendant isthmus
11 12
INTRODUCTION TO GRAPH INTRODUCTION TO GRAPH
THEORY THEORY
1.3. Some definitions (next) 1.3. Some definitions (next)
An articulation point is a vertex such that its deletion The connectivity
increases the number of connected components of the An undirected connected graph is a graph where from
initial graph. a vertex we can join all the other vertices.
For a directed graph, we talk about connectivity if we
Articulation point ignore the orientation of the edges, the graph becomes
2 1
connected.
6 3 We distinguish 2 types of connectivity: strongly
connected and weakly connected (sections: 1.4.4 and 1.4.5)
5 4
An unconnected graph is decomposed into several
connected components.
13 14
2 1
6 3
5 4
Disconnected graph 15 16
INTRODUCTION TO GRAPH INTRODUCTION TO GRAPH
THEORY THEORY
1.3. Some definitions (next) 1.3. Some definitions (next)
A path is a chain such that the terminal end of an arc A cycle is a simple chain whose end vertices coincide.
coincides with the initial end of the next arc. A circuit is a path whose initial node is the terminal
The first vertex of the path is called the initial node node. We can say that a loop is a circuit of length 1.
of the path, and the last is called the terminal node.
Initial and
Initial node 1 2 Initial and terminal node 1 2
terminal node 1 2
5 Terminal node 5
5
3 4 3 4
3 4
2 3 2 3 3 Complete graph
4 4 2
Simple graph 19 20
Multigraph
INTRODUCTION TO GRAPH INTRODUCTION TO GRAPH
THEORY THEORY
1.4. Some types of graphs (next) 1.4. Some types of graphs (next)
1.4.4. Strongly connected graph 1.4.5. Weakly connected graph
An oriented graph is strongly connected if there is a An oriented graph is weakly connected if there is a
path between every two vertices in both directions. chain between any pair of vertices without considering
Exp. G = (S, A) is a strongly connected graph with the orientation of the arcs.
S={1,2,3,4,5} and A={(1,2), (2,4), (4,3), (3,1), (2,5), (5,4)}. Exp. G = (S, A) is a weakly connected graph with
S={1,2,3,4,5} et A={(1,2), (2,4), (4,3), (3,1), (2,5), (5,4)}.
1 2
1 2
Weakly connected graph 5
Strongly connected graph 5
3 4
3 4 21 22