SlideShare a Scribd company logo
Graph theory Basics properties Classic problems Fundamental Knowledge
Artificial Intelligence
Graph theory
G. Guérard
Department of Nouvelles Energies
Ecole Supérieure d’Ingénieurs Léonard de Vinci
Lecture 1
GG | A.I. 1/37
Graph theory Basics properties Classic problems Fundamental Knowledge
OutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutline
1 Graph theory
Undirected and directed graphs
Degree
2 Basics properties
Path and Cycles
Specifications
3 Classic problems
Eulerian circuit
Hamiltonian circuit
Spanning tree
Graph Coloring
GG | A.I. 2/37
Graph theory Basics properties Classic problems Fundamental Knowledge
IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction
A graph is a mathematical object consisting of a set of:
NODES - V
EDGES - E
GRAPH is denoted by G = (V , E)
n = |V | and m = |E|
A graph captures pairwise relationship between objects.
GG | A.I. 3/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Undirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graph
Undirected graph
An UNDIRECTED GRAPH is a pair: G = (V , E) where V is a
nonempty SET OF VERTICES and E = {(u, v) : u, v ∈ V } is a
SET OF EDGES.
Remark
Let m = (p, q) ∈ E. This means that the edge m connects the
vertex p and the vertex q. Moreover, in such a case p and q are
called the ENDPOINTS of m and we say that p and q are incident
with m, they are ADJACENT or neighbours of each other.
GG | A.I. 4/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Undirected graph
Consider the undirected graph G = (V , E) where
V = {a, b, c, d, e}, and
E = {(a, b), (a, c), (a, e), (e, b), (d, b), (c, d), (d, e)}.
Remark
We usually use a graphical representation of the graph. The
vertices are represented by points and the edges by lines
connecting the points.
GG | A.I. 5/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Bipartite
Consider a set of discipline D = {A, B, C, D} and students
S = {1, 2, 3, 4}. Every student is interested in some schools
Di ⊂ D. The situation can be easily modelled by the graph
G = (D ∪ S, E).
GG | A.I. 6/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Special edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edges
Multiedges
MULTIEDGES are edges which connect the same pair of vertices
and a LOOP connects the vertex with itself. A graph with
multiedges and loops is called a MULTIGRAPH.
GG | A.I. 7/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Special edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edges
We can associated WEIGHTS to edges (see previous example).
These weights can represent cast, profit, length, capacity, action,
etc. of a given connection.
Weight
The weight is a mapping from the set of edges to a set of numbers
or alphabet w : E → R or Σ. The graph with weight function of
numbers is called a NETWORK and denoted by G = (V , E, w).
Alphabet or probability give two others types of graphs: automata and
markov chain.
GG | A.I. 8/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Weight
Let us consider the graph G = (V , E, w) seen previously, and
the weight function:
e ∈ E (a, b) (a, c) (a, e) (d, b) (e, b) (d, e) (d, c)
w(e) -9 3 6 0 12 8 0.7
GG | A.I. 9/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Directed graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graph
Directed graph
A DIRECTED GRAPH is a pair G = (V , E) where V is a
nonempty set of vertices and E = {(u, v) : u, v ∈ V } is a set of
directed edges (or ARCS). If (p, q) ∈ E, p is the head of the arc
and q is the tail of the arc.
GG | A.I. 10/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Directed graph
Consider the directed graph G = (V , E) where
V = {a, b, c, d, e}, and
E = {(a, b), (a, c), (a, e), (e, b), (d, b), (c, d), (d, e)}.
GG | A.I. 11/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegree
Undirected graph
The DEGREE of the vertex v is the number of edges incident to the
vertex, with loops counted twice. The degree of a vertex is
denoted deg(v) or Γ(v). A vertex v with degree 0 is called an
ISOLATED. A vertex with degree 1 is called an endvertex or a
LEAF.
The degree of the graph G, (G) is the maximum degree of its
vertices.
(G) = max
v∈V
Γ(V ).
GG | A.I. 12/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Degree
Consider the graph
Isolated vertices are x5 and x7. Leaves are x4 and x6.
(G) = max
v∈V
Γ(V ) = deg(x2) = 5.
GG | A.I. 13/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegree
Directed graph
The IN-DEGREE of a vertex v, Γ−(v), is the number of arc
incoming. The OUT-DEGREE of a vertex v, Γ+(v), is the number
of arc going out. The degree of a vertex is
Γ(v) = Γ−(v) + Γ+(v).
A vertex s for which Γ−(v) = 0 and Γ+(v) > 0 is called a
SOURCE and a vertex t for which Γ−(v) > 0 and Γ+(v) = 0 is
called a SINK.
GG | A.I. 14/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Degree
Consider the directed graph
Γ−(x) = 2, Γ+(x) = 3; Γ−(y) = 5, Γ+(y) = 1.
(G) = max
v∈V
Γ(V ) = deg(y) = 6. There is no source or sink
(technically, y can be called a sink because we can’t escape from
y to another vertex).
GG | A.I. 15/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Source and sink
Consider the directed graph
Sources are vertices a and c, sink is the vertex e.
GG | A.I. 16/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegree
Theorem
For any graph, we have ∑
v∈V
deg(v) = 2|E|. The demonstration is
trivial, any edge connects two vertices. So an edge (directed or
undirected) increase the total of degrees by two.
Theorem
The number of vertices of odd degree is even. The sum of all the
degrees is equal to twice the number of edges. Since the sum of the
degrees is even and the sum of the degrees of vertices with even degree
is even, the sum of the degrees of vertices with odd degree must be
even. If the sum of the degrees of vertices with odd degree is even,
there must be an even number of those vertices.
GG | A.I. 17/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition
Path
A PATH (or CHAIN in a directed graph) in a graph is a sequence
of edges (or arcs) which connect a sequence of vertices. To be more
specific, a sequence (e1, . . . , en) is called a path of the LENGTH n
if there are vertices v0, . . . , vn such that ei = (vi−1, vi ), i = 1..n.
The first vertex v1 is called START vertex, and the last vertex vn
is called END vertex. Both of them are called TERMINAL vertices
of the path. If v0 = vn then the sequence is called a closed path.
A closed path which the edges and vertices are distinct (exept
terminals) is called a CYCLE (or a CIRCUIT in directed graph).
GG | A.I. 18/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample
Path
Consider the graph
(d, e, g, b, a) is a closed path. (d, g, b, a) is a cycle.
GG | A.I. 19/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition
Acyclic
A graph without cycles is called ACYCLIC.
Connected
A graph is called CONNECTED if for any couple of vertices u
and v there exists a path connecting u and v, i.e. with start vertex
is u and end vertex is v.
GG | A.I. 20/37
Graph theory Basics properties Classic problems Fundamental Knowledge
TreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTree
Tree
A connected and acyclic graph is called a TREE.
a, b, c, d are trees, e has a cycle.
GG | A.I. 21/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Complete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graph
Complete graph
A COMPLETE graph Kn is the graph with n vertices and all the
pairs of vertices are adjacent to each other.
Theorem
In any Kn, deg(v) = n − 1, ∀v ∈ V . The number of edges is
|E| =
[
i= 1]n∑i = n(n−1)
2 .
GG | A.I. 22/37
Graph theory Basics properties Classic problems Fundamental Knowledge
SubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraph
Subgraph
A graph H = (VH, EH ) is called a SUBGRAPH of G = (V , E)
when VH ⊂ V and EH ⊂ E.
Consider graphs
G1 and G2 are subgraphs of G.
GG | A.I. 23/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit
Problem
GIVEN THE GRAPH, IS IT POSSIBLE TO CONSTRUCT A PATH (OR
A CYCLE) WHICH VISITS EACH EDGE EXACTLY ONCE?
Eulerian circuit
How can we recognize Eulerian graph? They have two
characterizations: node degrees, existence of a special collection
of cycles.
Theorem
For a connected graph G, the following statements are
equivalent: G is Eulerian (1); Every vertex of G has even degree
(2); The edges of G can be partitioned into edge-disjoint cycles (3).
GG | A.I. 24/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit
Proof 1 > 2
Assume G is Eulerian ⇐⇒ there exists a circuit that includes
every edge of G. Every time a circuit enters a node v on an
edge, it leave on a different edge. Since the circuit never repeats
an edge, the number of edges incident with v is even ⇒ deg(v)
is even.
GG | A.I. 25/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit
Proof 2>3
Suppose every node of G has even degree. We use induction on
the number of cycles in G. G is connected and without nodes of
degree 1, so G is not a tree, Ghas at least one cycle Cn1 . Let G
be the graph obtained by removing Cn1 from G. All edges of G
have even degree and we can proceed recursively to prove that
G can be partitioned into cycles Cn2 . . . Cnk
. Then, Cn1 . . . Cnk
is
a partition of G into edge-disjoint cycles.
GG | A.I. 26/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit
Proof 3>1
Suppose that the edges of G can be partitioned into k edge-disjoint cycles
Cn1 . . . Cnk
. Because G is connected, every such cycle is an Eulerian circuit
which must share a node with another cycle ⇒ these circuits can be patched
until we obtain one Eulerian circuit which is the whole graph G.
GG | A.I. 27/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Eulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian path
Question
How to recognize graph which contain an Eulerian path?
Note that: If the graph is Eulerian, then it contains an Eulerian path
because every Eulerian circuit is also a path.
Corollary
A connected graph G contains an Eulerian path iff there are at
most two vertices of odd degree.
GG | A.I. 28/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Hamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuit
Problem
GIVEN THE GRAPH, IS IT POSSIBLE TO CONSTRUCT A PATH (OR
A CYCLE) WHICH VISITS EACH VERTEX EXACTLY ONCE?
Hamiltonian circuit
How can we recognize Eulerian graph? There is no simple
characterisation for this problem. Hamiltonian graphs can have
all even degrees, all odd degrees, or a mixture.
GG | A.I. 29/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Hamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuit
Dirac’s Theorem
Let G be a graph of order n ≥ 3. If deg(G) ≥ n
2 , then G is
Hamiltonian.
Dirac’s Theorem 2
Let G be a graph of order n ≥ 3. If deg(x) + deg(y) ≥ n for all
pairs of nonadjacent nodes x, y, then G is Hamiltonian.
GG | A.I. 30/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition
Spanning tree
A SPANNING TREE T of an undirected graph G is a subgraph that is a
tree which includes all of the vertices of G. A MINIMUM SPANNING TREE
(MST) connects all the vertices together with the minimal total weighting
for its edges (see KRUSKAL and PRIM).
Applications
In order to minimize the cost of power networks, wiring connections, piping,
automatic speech recognition, etc., we use algorithms that gradually build a
spanning tree (or many such trees) as intermediate steps in the process of
finding the minimum spanning tree.
The Internet and many other telecommunications networks have
transmission links that connect nodes together in a mesh topology that
includes some loops. In order to avoid bridge loops and routing loops, many
routing protocols designed for such networks require each router to
remember a spanning tree.
GG | A.I. 31/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Kruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s Algorithm
KRUSKAL’S ALGORITHM is a greedy algorithm for the MST
problem.
Initially, let T ← ∅ be the empty graph on V .
Examine the edges in E in increasing order of weight:
If an edge connects two unconnected components of T, then add
the edge to T
Else, discard the edge and continue.
Terminate when there is only one connected component.
GG | A.I. 32/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Prim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s Algorithm
PRIM’S ALGORITHM is a greedy algorithm for the MST
problem.
Initialize a tree with a single vertex, chosen arbitrarily from the graph.
Grow the tree by one edge: of the edges that connect the tree to vertices
not yet in the tree, find the minimum-weight edge, and transfer it to
the tree.
Repeat step 2 (until all vertices are in the tree).
GG | A.I. 33/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition
Definition
GRAPH COLORING is a special case of graph labeling; it is an
assignment of labels traditionally called "colors" to elements of a
graph subject to certain constraints. In its simplest form, it is a
way of coloring the vertices of a graph such that no two adjacent
vertices share the same color; this is called a VERTEX COLORING.
Similarly, an EDGE COLORING assigns a color to each edge so
that no two adjacent edges share the same color, and a face coloring
of a planar graph assigns a color to each face or region so that
no two faces that share a boundary have the same color.
Without any qualification, a coloring is always a vertex coloring.
GG | A.I. 34/37
Graph theory Basics properties Classic problems Fundamental Knowledge
DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition
Definition
Given a graph G(V , E) with vertex set V and edge set E, a k-colouring of G
is a function C : V → {1 . . . k} that assigns distinct values to adjacent
vertices. For each edge e = (u, v) ∈ E, we require C(u) = C(v). If G has a
k-colouring then it is said to be k-colourable. In words, a graph is
k-colourable if one can draw it in such a way that no two adjacent vertices
have the same colour. The chromatic number χ(G) is the smallest number k
such that G is k-colourable.
GG | A.I. 35/37
Graph theory Basics properties Classic problems Fundamental Knowledge
ApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplications
The problem of coloring a graph arises in many practical areas
such as pattern matching, sports scheduling, designing seating
plans, exam timetabling, the scheduling of taxis, and solving Sudoku
puzzles.
Example
A given set of jobs need to be assigned to time slots, each job requires
one such slot. Jobs can be scheduled in any order, but pairs of jobs
may be in conflict in the sense that they may not be assigned to the
same time slot, for example because they both rely on a shared
resource. The corresponding graph contains a vertex for every job
and an edge for every conflicting pair of jobs. The chromatic number
of the graph is exactly the minimum makespan, the optimal time to
finish all jobs without conflicts.
GG | A.I. 36/37
Graph theory Basics properties Classic problems Fundamental Knowledge
Fundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledge
YOU HAVE TO KNOW BEFORE THE TUTORIAL:
1 Caracteristics and differences between undirected and directed
graphs;
2 Notion of degrees, how to calculate them;
3 Notion of path and cycles;
4 Hamiltonian and eulerian definitions (Problem block);
5 Kruskal and Prim’s algorithms;
6 Graph coloration.
GG | A.I. 37/37

More Related Content

What's hot

Graph theory
Graph  theoryGraph  theory
Graph theory
Manash Kumar Mondal
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Rashmi Bhat
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
ArvindBorge
 
Graph theory
Graph theory Graph theory
Graph theory
iranian translate
 
Applications of graph theory
                      Applications of graph theory                      Applications of graph theory
Applications of graph theory
NilaNila16
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
Aliul Kadir Akib
 
graph theory
graph theory graph theory
graph theory
ganith2k13
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
showslidedump
 
Isomorphism in Math
Isomorphism in MathIsomorphism in Math
Isomorphism in Math
Mahe Karim
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
Sikder Tahsin Al-Amin
 
CS6702 Unit III coloring ppt
CS6702   Unit III coloring pptCS6702   Unit III coloring ppt
CS6702 Unit III coloring ppt
Abilaasha Ganesan
 
Graph theory
Graph theoryGraph theory
Graph theory
Kumar
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
appasami
 
Graph theory and its applications
Graph theory and its applicationsGraph theory and its applications
Graph theory and its applications
Manikanta satyala
 
Euler graph
Euler graphEuler graph
Euler graph
AAQIB PARREY
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).ppt
ishan743441
 
Euler paths and circuits
Euler paths and circuitsEuler paths and circuits
Euler paths and circuits
03446940736
 
Graph theory
Graph theoryGraph theory
Graph theory
AparnaKumari31
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Saurabh Kaushik
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
Milan Joshi
 

What's hot (20)

Graph theory
Graph  theoryGraph  theory
Graph theory
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
 
Graph theory
Graph theory Graph theory
Graph theory
 
Applications of graph theory
                      Applications of graph theory                      Applications of graph theory
Applications of graph theory
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
 
graph theory
graph theory graph theory
graph theory
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
Isomorphism in Math
Isomorphism in MathIsomorphism in Math
Isomorphism in Math
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
CS6702 Unit III coloring ppt
CS6702   Unit III coloring pptCS6702   Unit III coloring ppt
CS6702 Unit III coloring ppt
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Cs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answersCs6702 graph theory and applications 2 marks questions and answers
Cs6702 graph theory and applications 2 marks questions and answers
 
Graph theory and its applications
Graph theory and its applicationsGraph theory and its applications
Graph theory and its applications
 
Euler graph
Euler graphEuler graph
Euler graph
 
Chapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).pptChapter 5 Graphs (1).ppt
Chapter 5 Graphs (1).ppt
 
Euler paths and circuits
Euler paths and circuitsEuler paths and circuits
Euler paths and circuits
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
 

Viewers also liked

burton_discrete_graph theory
burton_discrete_graph theoryburton_discrete_graph theory
burton_discrete_graph theory
guest63f42b
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
Shivam Singh
 
Graph
GraphGraph
Graph
ssnetvnr
 
Survey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - SlidesSurvey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - Slides
Kasun Gajasinghe
 
2 Graph Theory
2 Graph Theory2 Graph Theory
2 Graph Theory
Maksim Tsvetovat
 
Leadership: What It Takes
Leadership: What It TakesLeadership: What It Takes
Leadership: What It Takes
Pepper Rutland
 
立委咖電喂簡報(18g0v簡報)
立委咖電喂簡報(18g0v簡報)立委咖電喂簡報(18g0v簡報)
立委咖電喂簡報(18g0v簡報)
Jessie Wang
 
Linked in talent solution for indonesia
Linked in talent solution for indonesiaLinked in talent solution for indonesia
Linked in talent solution for indonesia
Vinita (Vijaeta) Pitoomal
 
Bbl company presentation
Bbl company presentationBbl company presentation
Bbl company presentation
水琴 余
 
CALIFORNIA: TOP 10 Fertility Clinics 2016
CALIFORNIA: TOP 10 Fertility Clinics 2016CALIFORNIA: TOP 10 Fertility Clinics 2016
CALIFORNIA: TOP 10 Fertility Clinics 2016
M Fe?ikov
 
災害議題管理Hackfoldr
災害議題管理Hackfoldr災害議題管理Hackfoldr
災害議題管理Hackfoldr
Jessie Wang
 
2016京都行 民宿分享
2016京都行 民宿分享2016京都行 民宿分享
2016京都行 民宿分享
Jessie Wang
 
Catalogo Vasos Exportação JPR
Catalogo Vasos Exportação JPRCatalogo Vasos Exportação JPR
Catalogo Vasos Exportação JPR
thaishe
 
Gastronomía Mexicana
Gastronomía MexicanaGastronomía Mexicana
Gastronomía Mexicana
adisadylu
 
Cable tray manufacturers,junction box
Cable tray manufacturers,junction boxCable tray manufacturers,junction box
Cable tray manufacturers,junction box
MMEQUIPMENTS KITCHENEQUIPMENTS
 
Basics on Decision Making
Basics on Decision MakingBasics on Decision Making
Basics on Decision Making
Guillaume Guérard
 
Dalton
DaltonDalton
Aqua Jet 2017
Aqua Jet 2017Aqua Jet 2017
Aqua Jet 2017
Brishkettu Rai
 

Viewers also liked (19)

burton_discrete_graph theory
burton_discrete_graph theoryburton_discrete_graph theory
burton_discrete_graph theory
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Graph
GraphGraph
Graph
 
Survey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - SlidesSurvey on Frequent Pattern Mining on Graph Data - Slides
Survey on Frequent Pattern Mining on Graph Data - Slides
 
2 Graph Theory
2 Graph Theory2 Graph Theory
2 Graph Theory
 
Leadership: What It Takes
Leadership: What It TakesLeadership: What It Takes
Leadership: What It Takes
 
立委咖電喂簡報(18g0v簡報)
立委咖電喂簡報(18g0v簡報)立委咖電喂簡報(18g0v簡報)
立委咖電喂簡報(18g0v簡報)
 
Linked in talent solution for indonesia
Linked in talent solution for indonesiaLinked in talent solution for indonesia
Linked in talent solution for indonesia
 
Bbl company presentation
Bbl company presentationBbl company presentation
Bbl company presentation
 
CALIFORNIA: TOP 10 Fertility Clinics 2016
CALIFORNIA: TOP 10 Fertility Clinics 2016CALIFORNIA: TOP 10 Fertility Clinics 2016
CALIFORNIA: TOP 10 Fertility Clinics 2016
 
災害議題管理Hackfoldr
災害議題管理Hackfoldr災害議題管理Hackfoldr
災害議題管理Hackfoldr
 
2016京都行 民宿分享
2016京都行 民宿分享2016京都行 民宿分享
2016京都行 民宿分享
 
Catalogo Vasos Exportação JPR
Catalogo Vasos Exportação JPRCatalogo Vasos Exportação JPR
Catalogo Vasos Exportação JPR
 
Gastronomía Mexicana
Gastronomía MexicanaGastronomía Mexicana
Gastronomía Mexicana
 
Ramirez
RamirezRamirez
Ramirez
 
Cable tray manufacturers,junction box
Cable tray manufacturers,junction boxCable tray manufacturers,junction box
Cable tray manufacturers,junction box
 
Basics on Decision Making
Basics on Decision MakingBasics on Decision Making
Basics on Decision Making
 
Dalton
DaltonDalton
Dalton
 
Aqua Jet 2017
Aqua Jet 2017Aqua Jet 2017
Aqua Jet 2017
 

Similar to Basics on Graph Theory

Cs6702 2marks rejinpaul
Cs6702 2marks rejinpaulCs6702 2marks rejinpaul
Cs6702 2marks rejinpaul
stalinjothi
 
Cs6702 GCC
Cs6702 GCCCs6702 GCC
Cs6702 GCC
stalinjothi
 
Graph
GraphGraph
graph.ppt
graph.pptgraph.ppt
Grpahs in Data Structure
Grpahs in Data StructureGrpahs in Data Structure
Grpahs in Data Structure
AvichalVishnoi
 
Graph theory concepts complex networks presents-rouhollah nabati
Graph theory concepts   complex networks presents-rouhollah nabatiGraph theory concepts   complex networks presents-rouhollah nabati
Graph theory concepts complex networks presents-rouhollah nabati
nabati
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
MeeraMeghpara
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
Hector Zenil
 
09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf
Prasanna David
 
1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx
swapnilbs2728
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Premsankar Chakkingal
 
Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
pubggaming58982
 
Introduction to Graphs
Introduction to GraphsIntroduction to Graphs
Introduction to Graphs
Fulvio Corno
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
Madhu Bala
 
Graph-theory.ppt
Graph-theory.pptGraph-theory.ppt
Graph-theory.ppt
AlpaSinghRajput1
 
Graph.ppt
Graph.pptGraph.ppt
Graph.ppt
AlpaSinghRajput1
 
DIGITAL TEXT BOOK
DIGITAL TEXT BOOKDIGITAL TEXT BOOK
DIGITAL TEXT BOOK
shinyvarghese1991
 
Unit 3 graph chapter6
Unit 3  graph chapter6Unit 3  graph chapter6
Unit 3 graph chapter6
DrkhanchanaR
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
ARVIND SARDAR
 
Graph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptxGraph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptx
asimshahzad8611
 

Similar to Basics on Graph Theory (20)

Cs6702 2marks rejinpaul
Cs6702 2marks rejinpaulCs6702 2marks rejinpaul
Cs6702 2marks rejinpaul
 
Cs6702 GCC
Cs6702 GCCCs6702 GCC
Cs6702 GCC
 
Graph
GraphGraph
Graph
 
graph.ppt
graph.pptgraph.ppt
graph.ppt
 
Grpahs in Data Structure
Grpahs in Data StructureGrpahs in Data Structure
Grpahs in Data Structure
 
Graph theory concepts complex networks presents-rouhollah nabati
Graph theory concepts   complex networks presents-rouhollah nabatiGraph theory concepts   complex networks presents-rouhollah nabati
Graph theory concepts complex networks presents-rouhollah nabati
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
 
09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf09_DS_MCA_Graphs.pdf
09_DS_MCA_Graphs.pdf
 
1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
 
Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
 
Introduction to Graphs
Introduction to GraphsIntroduction to Graphs
Introduction to Graphs
 
Data structure - Graph
Data structure - GraphData structure - Graph
Data structure - Graph
 
Graph-theory.ppt
Graph-theory.pptGraph-theory.ppt
Graph-theory.ppt
 
Graph.ppt
Graph.pptGraph.ppt
Graph.ppt
 
DIGITAL TEXT BOOK
DIGITAL TEXT BOOKDIGITAL TEXT BOOK
DIGITAL TEXT BOOK
 
Unit 3 graph chapter6
Unit 3  graph chapter6Unit 3  graph chapter6
Unit 3 graph chapter6
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
 
Graph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptxGraph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptx
 

Recently uploaded

原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
yqqaatn0
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
terusbelajar5
 
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdfTopic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
TinyAnderson
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
Leonel Morgado
 
Oedema_types_causes_pathophysiology.pptx
Oedema_types_causes_pathophysiology.pptxOedema_types_causes_pathophysiology.pptx
Oedema_types_causes_pathophysiology.pptx
muralinath2
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
Hitesh Sikarwar
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
HongcNguyn6
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
MAGOTI ERNEST
 
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
AbdullaAlAsif1
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
pablovgd
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
Aditi Bajpai
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
vluwdy49
 
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero WaterSharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Texas Alliance of Groundwater Districts
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
European Sustainable Phosphorus Platform
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
Gokturk Mehmet Dilci
 

Recently uploaded (20)

原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
 
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdfTopic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
 
Oedema_types_causes_pathophysiology.pptx
Oedema_types_causes_pathophysiology.pptxOedema_types_causes_pathophysiology.pptx
Oedema_types_causes_pathophysiology.pptx
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
 
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
 
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero WaterSharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
 

Basics on Graph Theory

  • 1. Graph theory Basics properties Classic problems Fundamental Knowledge Artificial Intelligence Graph theory G. Guérard Department of Nouvelles Energies Ecole Supérieure d’Ingénieurs Léonard de Vinci Lecture 1 GG | A.I. 1/37
  • 2. Graph theory Basics properties Classic problems Fundamental Knowledge OutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutline 1 Graph theory Undirected and directed graphs Degree 2 Basics properties Path and Cycles Specifications 3 Classic problems Eulerian circuit Hamiltonian circuit Spanning tree Graph Coloring GG | A.I. 2/37
  • 3. Graph theory Basics properties Classic problems Fundamental Knowledge IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction A graph is a mathematical object consisting of a set of: NODES - V EDGES - E GRAPH is denoted by G = (V , E) n = |V | and m = |E| A graph captures pairwise relationship between objects. GG | A.I. 3/37
  • 4. Graph theory Basics properties Classic problems Fundamental Knowledge Undirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graphUndirected graph Undirected graph An UNDIRECTED GRAPH is a pair: G = (V , E) where V is a nonempty SET OF VERTICES and E = {(u, v) : u, v ∈ V } is a SET OF EDGES. Remark Let m = (p, q) ∈ E. This means that the edge m connects the vertex p and the vertex q. Moreover, in such a case p and q are called the ENDPOINTS of m and we say that p and q are incident with m, they are ADJACENT or neighbours of each other. GG | A.I. 4/37
  • 5. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Undirected graph Consider the undirected graph G = (V , E) where V = {a, b, c, d, e}, and E = {(a, b), (a, c), (a, e), (e, b), (d, b), (c, d), (d, e)}. Remark We usually use a graphical representation of the graph. The vertices are represented by points and the edges by lines connecting the points. GG | A.I. 5/37
  • 6. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Bipartite Consider a set of discipline D = {A, B, C, D} and students S = {1, 2, 3, 4}. Every student is interested in some schools Di ⊂ D. The situation can be easily modelled by the graph G = (D ∪ S, E). GG | A.I. 6/37
  • 7. Graph theory Basics properties Classic problems Fundamental Knowledge Special edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edges Multiedges MULTIEDGES are edges which connect the same pair of vertices and a LOOP connects the vertex with itself. A graph with multiedges and loops is called a MULTIGRAPH. GG | A.I. 7/37
  • 8. Graph theory Basics properties Classic problems Fundamental Knowledge Special edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edgesSpecial edges We can associated WEIGHTS to edges (see previous example). These weights can represent cast, profit, length, capacity, action, etc. of a given connection. Weight The weight is a mapping from the set of edges to a set of numbers or alphabet w : E → R or Σ. The graph with weight function of numbers is called a NETWORK and denoted by G = (V , E, w). Alphabet or probability give two others types of graphs: automata and markov chain. GG | A.I. 8/37
  • 9. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Weight Let us consider the graph G = (V , E, w) seen previously, and the weight function: e ∈ E (a, b) (a, c) (a, e) (d, b) (e, b) (d, e) (d, c) w(e) -9 3 6 0 12 8 0.7 GG | A.I. 9/37
  • 10. Graph theory Basics properties Classic problems Fundamental Knowledge Directed graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graphDirected graph Directed graph A DIRECTED GRAPH is a pair G = (V , E) where V is a nonempty set of vertices and E = {(u, v) : u, v ∈ V } is a set of directed edges (or ARCS). If (p, q) ∈ E, p is the head of the arc and q is the tail of the arc. GG | A.I. 10/37
  • 11. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Directed graph Consider the directed graph G = (V , E) where V = {a, b, c, d, e}, and E = {(a, b), (a, c), (a, e), (e, b), (d, b), (c, d), (d, e)}. GG | A.I. 11/37
  • 12. Graph theory Basics properties Classic problems Fundamental Knowledge DegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegree Undirected graph The DEGREE of the vertex v is the number of edges incident to the vertex, with loops counted twice. The degree of a vertex is denoted deg(v) or Γ(v). A vertex v with degree 0 is called an ISOLATED. A vertex with degree 1 is called an endvertex or a LEAF. The degree of the graph G, (G) is the maximum degree of its vertices. (G) = max v∈V Γ(V ). GG | A.I. 12/37
  • 13. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Degree Consider the graph Isolated vertices are x5 and x7. Leaves are x4 and x6. (G) = max v∈V Γ(V ) = deg(x2) = 5. GG | A.I. 13/37
  • 14. Graph theory Basics properties Classic problems Fundamental Knowledge DegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegree Directed graph The IN-DEGREE of a vertex v, Γ−(v), is the number of arc incoming. The OUT-DEGREE of a vertex v, Γ+(v), is the number of arc going out. The degree of a vertex is Γ(v) = Γ−(v) + Γ+(v). A vertex s for which Γ−(v) = 0 and Γ+(v) > 0 is called a SOURCE and a vertex t for which Γ−(v) > 0 and Γ+(v) = 0 is called a SINK. GG | A.I. 14/37
  • 15. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Degree Consider the directed graph Γ−(x) = 2, Γ+(x) = 3; Γ−(y) = 5, Γ+(y) = 1. (G) = max v∈V Γ(V ) = deg(y) = 6. There is no source or sink (technically, y can be called a sink because we can’t escape from y to another vertex). GG | A.I. 15/37
  • 16. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Source and sink Consider the directed graph Sources are vertices a and c, sink is the vertex e. GG | A.I. 16/37
  • 17. Graph theory Basics properties Classic problems Fundamental Knowledge DegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegreeDegree Theorem For any graph, we have ∑ v∈V deg(v) = 2|E|. The demonstration is trivial, any edge connects two vertices. So an edge (directed or undirected) increase the total of degrees by two. Theorem The number of vertices of odd degree is even. The sum of all the degrees is equal to twice the number of edges. Since the sum of the degrees is even and the sum of the degrees of vertices with even degree is even, the sum of the degrees of vertices with odd degree must be even. If the sum of the degrees of vertices with odd degree is even, there must be an even number of those vertices. GG | A.I. 17/37
  • 18. Graph theory Basics properties Classic problems Fundamental Knowledge DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition Path A PATH (or CHAIN in a directed graph) in a graph is a sequence of edges (or arcs) which connect a sequence of vertices. To be more specific, a sequence (e1, . . . , en) is called a path of the LENGTH n if there are vertices v0, . . . , vn such that ei = (vi−1, vi ), i = 1..n. The first vertex v1 is called START vertex, and the last vertex vn is called END vertex. Both of them are called TERMINAL vertices of the path. If v0 = vn then the sequence is called a closed path. A closed path which the edges and vertices are distinct (exept terminals) is called a CYCLE (or a CIRCUIT in directed graph). GG | A.I. 18/37
  • 19. Graph theory Basics properties Classic problems Fundamental Knowledge ExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExampleExample Path Consider the graph (d, e, g, b, a) is a closed path. (d, g, b, a) is a cycle. GG | A.I. 19/37
  • 20. Graph theory Basics properties Classic problems Fundamental Knowledge DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition Acyclic A graph without cycles is called ACYCLIC. Connected A graph is called CONNECTED if for any couple of vertices u and v there exists a path connecting u and v, i.e. with start vertex is u and end vertex is v. GG | A.I. 20/37
  • 21. Graph theory Basics properties Classic problems Fundamental Knowledge TreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTreeTree Tree A connected and acyclic graph is called a TREE. a, b, c, d are trees, e has a cycle. GG | A.I. 21/37
  • 22. Graph theory Basics properties Classic problems Fundamental Knowledge Complete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graphComplete graph Complete graph A COMPLETE graph Kn is the graph with n vertices and all the pairs of vertices are adjacent to each other. Theorem In any Kn, deg(v) = n − 1, ∀v ∈ V . The number of edges is |E| = [ i= 1]n∑i = n(n−1) 2 . GG | A.I. 22/37
  • 23. Graph theory Basics properties Classic problems Fundamental Knowledge SubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraphSubgraph Subgraph A graph H = (VH, EH ) is called a SUBGRAPH of G = (V , E) when VH ⊂ V and EH ⊂ E. Consider graphs G1 and G2 are subgraphs of G. GG | A.I. 23/37
  • 24. Graph theory Basics properties Classic problems Fundamental Knowledge Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit Problem GIVEN THE GRAPH, IS IT POSSIBLE TO CONSTRUCT A PATH (OR A CYCLE) WHICH VISITS EACH EDGE EXACTLY ONCE? Eulerian circuit How can we recognize Eulerian graph? They have two characterizations: node degrees, existence of a special collection of cycles. Theorem For a connected graph G, the following statements are equivalent: G is Eulerian (1); Every vertex of G has even degree (2); The edges of G can be partitioned into edge-disjoint cycles (3). GG | A.I. 24/37
  • 25. Graph theory Basics properties Classic problems Fundamental Knowledge Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit Proof 1 > 2 Assume G is Eulerian ⇐⇒ there exists a circuit that includes every edge of G. Every time a circuit enters a node v on an edge, it leave on a different edge. Since the circuit never repeats an edge, the number of edges incident with v is even ⇒ deg(v) is even. GG | A.I. 25/37
  • 26. Graph theory Basics properties Classic problems Fundamental Knowledge Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit Proof 2>3 Suppose every node of G has even degree. We use induction on the number of cycles in G. G is connected and without nodes of degree 1, so G is not a tree, Ghas at least one cycle Cn1 . Let G be the graph obtained by removing Cn1 from G. All edges of G have even degree and we can proceed recursively to prove that G can be partitioned into cycles Cn2 . . . Cnk . Then, Cn1 . . . Cnk is a partition of G into edge-disjoint cycles. GG | A.I. 26/37
  • 27. Graph theory Basics properties Classic problems Fundamental Knowledge Eulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuitEulerian circuit Proof 3>1 Suppose that the edges of G can be partitioned into k edge-disjoint cycles Cn1 . . . Cnk . Because G is connected, every such cycle is an Eulerian circuit which must share a node with another cycle ⇒ these circuits can be patched until we obtain one Eulerian circuit which is the whole graph G. GG | A.I. 27/37
  • 28. Graph theory Basics properties Classic problems Fundamental Knowledge Eulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian pathEulerian path Question How to recognize graph which contain an Eulerian path? Note that: If the graph is Eulerian, then it contains an Eulerian path because every Eulerian circuit is also a path. Corollary A connected graph G contains an Eulerian path iff there are at most two vertices of odd degree. GG | A.I. 28/37
  • 29. Graph theory Basics properties Classic problems Fundamental Knowledge Hamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuit Problem GIVEN THE GRAPH, IS IT POSSIBLE TO CONSTRUCT A PATH (OR A CYCLE) WHICH VISITS EACH VERTEX EXACTLY ONCE? Hamiltonian circuit How can we recognize Eulerian graph? There is no simple characterisation for this problem. Hamiltonian graphs can have all even degrees, all odd degrees, or a mixture. GG | A.I. 29/37
  • 30. Graph theory Basics properties Classic problems Fundamental Knowledge Hamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuitHamiltonian circuit Dirac’s Theorem Let G be a graph of order n ≥ 3. If deg(G) ≥ n 2 , then G is Hamiltonian. Dirac’s Theorem 2 Let G be a graph of order n ≥ 3. If deg(x) + deg(y) ≥ n for all pairs of nonadjacent nodes x, y, then G is Hamiltonian. GG | A.I. 30/37
  • 31. Graph theory Basics properties Classic problems Fundamental Knowledge DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition Spanning tree A SPANNING TREE T of an undirected graph G is a subgraph that is a tree which includes all of the vertices of G. A MINIMUM SPANNING TREE (MST) connects all the vertices together with the minimal total weighting for its edges (see KRUSKAL and PRIM). Applications In order to minimize the cost of power networks, wiring connections, piping, automatic speech recognition, etc., we use algorithms that gradually build a spanning tree (or many such trees) as intermediate steps in the process of finding the minimum spanning tree. The Internet and many other telecommunications networks have transmission links that connect nodes together in a mesh topology that includes some loops. In order to avoid bridge loops and routing loops, many routing protocols designed for such networks require each router to remember a spanning tree. GG | A.I. 31/37
  • 32. Graph theory Basics properties Classic problems Fundamental Knowledge Kruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s AlgorithmKruskal’s Algorithm KRUSKAL’S ALGORITHM is a greedy algorithm for the MST problem. Initially, let T ← ∅ be the empty graph on V . Examine the edges in E in increasing order of weight: If an edge connects two unconnected components of T, then add the edge to T Else, discard the edge and continue. Terminate when there is only one connected component. GG | A.I. 32/37
  • 33. Graph theory Basics properties Classic problems Fundamental Knowledge Prim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s AlgorithmPrim’s Algorithm PRIM’S ALGORITHM is a greedy algorithm for the MST problem. Initialize a tree with a single vertex, chosen arbitrarily from the graph. Grow the tree by one edge: of the edges that connect the tree to vertices not yet in the tree, find the minimum-weight edge, and transfer it to the tree. Repeat step 2 (until all vertices are in the tree). GG | A.I. 33/37
  • 34. Graph theory Basics properties Classic problems Fundamental Knowledge DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition Definition GRAPH COLORING is a special case of graph labeling; it is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints. In its simplest form, it is a way of coloring the vertices of a graph such that no two adjacent vertices share the same color; this is called a VERTEX COLORING. Similarly, an EDGE COLORING assigns a color to each edge so that no two adjacent edges share the same color, and a face coloring of a planar graph assigns a color to each face or region so that no two faces that share a boundary have the same color. Without any qualification, a coloring is always a vertex coloring. GG | A.I. 34/37
  • 35. Graph theory Basics properties Classic problems Fundamental Knowledge DefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinitionDefinition Definition Given a graph G(V , E) with vertex set V and edge set E, a k-colouring of G is a function C : V → {1 . . . k} that assigns distinct values to adjacent vertices. For each edge e = (u, v) ∈ E, we require C(u) = C(v). If G has a k-colouring then it is said to be k-colourable. In words, a graph is k-colourable if one can draw it in such a way that no two adjacent vertices have the same colour. The chromatic number χ(G) is the smallest number k such that G is k-colourable. GG | A.I. 35/37
  • 36. Graph theory Basics properties Classic problems Fundamental Knowledge ApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplicationsApplications The problem of coloring a graph arises in many practical areas such as pattern matching, sports scheduling, designing seating plans, exam timetabling, the scheduling of taxis, and solving Sudoku puzzles. Example A given set of jobs need to be assigned to time slots, each job requires one such slot. Jobs can be scheduled in any order, but pairs of jobs may be in conflict in the sense that they may not be assigned to the same time slot, for example because they both rely on a shared resource. The corresponding graph contains a vertex for every job and an edge for every conflicting pair of jobs. The chromatic number of the graph is exactly the minimum makespan, the optimal time to finish all jobs without conflicts. GG | A.I. 36/37
  • 37. Graph theory Basics properties Classic problems Fundamental Knowledge Fundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledge YOU HAVE TO KNOW BEFORE THE TUTORIAL: 1 Caracteristics and differences between undirected and directed graphs; 2 Notion of degrees, how to calculate them; 3 Notion of path and cycles; 4 Hamiltonian and eulerian definitions (Problem block); 5 Kruskal and Prim’s algorithms; 6 Graph coloration. GG | A.I. 37/37