Professional Documents
Culture Documents
Connectivity
Notations
Let G be a graph and v vertex of G. Then
d(v) : number of non-loop edges containing v
plus twice the number of loops containing v.
(G) : maximum degree of G.
(G) : minimum degree of G.
k-regular : (G) = (G) = k.
isolated vertex : degree=0.
Neighborhood : NG(v) , NG[v]
n(G) : order of G , is the number of vertices in
G.
e(G) : the number of edges in G.
Connectivity
Notations
Let G be a digraph. Then
d+(v) : the number of arcs of the form vw.
d-(v) : the number of arcs of the form wv.
Neighborhood : N+G (v) , N-G[v]
Connectivity
Walk
A walk in a graph G is a finite sequence of
edges of the form v0v1, v1v2, . . . , vm-1vm,
also denoted by
in which any two consecutive edges are
adjacent or identical.
We call v0 the initial vertex and vm the
final vertex of the walk, and speak of a
walk from v0 to vm. The number of edges
in a walk is called its length.
Connectivity
Trail, Path and Cycle
Trail: a trail is a walk with no repeated edge
Path : a path is a walk with no repeated
vertex.
Cycle : a path from v0 to v0
Connectivity
Connected graph
A graph G is connected if there is a
path between every pair of vertices.
A component of a graph : the maximal
connected subgraph. (nontrivial :
contains an edge)
Connectivity
Connected graph
A cut-edge (cut-vertex): an edge (a
vertex) whose deletion increases the
number of components.
Note that : cut-edge belongs to no
cycle !!!
Connectivity
Connected digraph
A digraph D is connected if the
underlying graph of D is a connected
graph.
A digraph D is strongly connected if,
for any two vertices v and w of D, there
is a directed path from v to w.
Every strongly connected digraph is
connected, but not all connected digraphs
are strongly connected;
Connectivity
Some results
Theorem. If v is a cut-vertex of a simple
graph G, then v is not a cut-vertex of the
complementary of G.
G-v : S , T
_
G-v : S, T
SS ST
ST TT
Connectivity
Some results
Theorem. A graph G is bipartite if and only
if every cycle of G has even length.
Idea :
v
X
odd
N(v)
Y
even
indep.
Connectivity
Some results
Recall
(Degree Sum Formula) If G is a graph
with vertex degree d1,,dn, then the
summation of all di = 2e(G).
The number of vertices of odd degree is
even.
Connectivity
Some results
Pigeonhole Principle : If a set consisting of
more than kn objects is partitioned into n
classes, then some class receives more
than k objects.
Theorem. Every simple graph with at least
two vertices has two vertices of equal
degree.
Theorem. If G is a simple graph of n
Connectivity
Some results
Theorem. Every 3-regular simple
connected graph has no cut-edge.
.
[26] for a wide range of practical problems, often with algorithms for their solution.
In this section we outline four types of problem that involve paths and cycles: the
sho test p th p oble , the c itic l p th p oble , the Chinese post n p oble and
the t elling s les n p oble . The first two of these can be solved by efficient
algorithms finite step-by-step procedures that quickly yield the solutions. The third
problem can also be solved by an efficient algorithm, but we consider only a special
case here. For the fourth problem, no efficient algorithms are known; we must therefore choose between algorithms that take a long time to implement and heuristic
algorithms that are quick to apply but give only an approximation to the solution.
Figure 2.35
Note that the numbers in the diagram might also refer, not to the length of each
road, but to the time taken to travel along it, or to the cost of doing so. Thus, if
Eulerian
Let graphs
G be
a connected graph.
A connected graphG is Eulerian if there exists a closed trail that includes every edge
such
G aistrailEulerian
there
exists
a closed
of G;
is an Eulerian if
trail.
Note that
this definition
requires you to
traverse each
edge(Eulerian
once and once only,
and tothat
finish atincludes
your starting point.
A nontrail
trail)
every
Eulerian graph G is semi-Eulerian if there exists a (non-closed) trail that includes
edge
of G.2.14, 2.15 and 2.16 show graphs that are Eulerian, semievery edge
of G. Figures
Eulerian
and non-Eulerian, respectively.
G
is semi-Eulerian if there exists a
trail that includes every edge of G.
Figure 2.14
Figure 2.15
Figure 2.16
Figure 2.19
Note that the digraph must be strongly connected for an Eulerian trail to exist. Note
also that any Eulerian graph is orientable, since we simply follow any Eulerian trail,
directing the edges in the direction of the trail as we go.
Our first aim is to give a necessary and sufficient condition, analogous to the one
his starting point. He must obviously traverse each road in his route at least once, but
should avoid covering too many roads more than once.
This problem can be reformulated in terms of a weighted graph, where the graph
corresponds to the network of roads, and the weight of each edge is the length of the
corresponding road. In this reformulation, the requirement is to find a closed walk of
minimum total weight that includes each edge at least once. If the graph is Eulerian,
then any Eulerian trail is a closed walk of the required type; such an Eulerian trail can
be found by Fleurys algorithm (see Section 2.2). If the graph is not Eulerian, then
the problem is much harder, although an efficient algorithm for its solution is known
(see Gibbons [23]).
To illustrate the ideas involved, we look at a special case, in which exactly two
vertices have odd degree (see Fig. 2.39).
Figure 2.39
Since vertices and E are the only vertices of odd degree, we can find a semiEulerian trail from to E covering each edge exactly once. In order to return to the
starting point, covering the least possible distance, we now find the shortest path from
E to using the algorithm described above. The solution of the Chinese postman
his starting point. He must obviously traverse each road in his route at least once, but
should avoid covering too many roads more than once.
This problem can be reformulated in terms of a weighted graph, where the graph
corresponds to the network of roads, and the weight of each edge is the length of the
corresponding road. In this reformulation, the requirement is to find a closed walk of
minimum total weight that includes each edge at least once. If the graph is Eulerian,
then any Eulerian trail is a closed walk of the required type; such an Eulerian trail can
be found by Fleurys algorithm (see Section 2.2). If the graph is not Eulerian, then
the problem is much harder, although an efficient algorithm for its solution is known
(see Gibbons [23]).
To illustrate the ideas involved, we look at a special case, in which exactly two
vertices have odd degree (see Fig. 2.39).
Figure 2.39
2.25
2.26
Hamiltonian graph
Hamiltonian graphsgraph
and digraphs
A2.3connected
G is hamiltonian if
we discussedexists
whether therea
exists
a closed trail that includes
GIn the
isprevious
K1 section
or there
cycle
every edge of a given connected graph G. A similar problem is to determine whether
there exists a closed trail passing
exactly once
each vertexexactly
of G: such a trail once
(Hamiltonian
cycle
) through
passing
must be a cycle, except when G is the graph . Such a cycle is a Hamiltonian cycle
through
each
vertex
of G.graph. A non-Hamiltonian
and a graph with a
Hamiltonian
cycle is a Hamiltonian
graph is semi-Hamiltonian if there exists a path through every vertex. Figures 2.24,
and 2.26 show graphs that are Hamiltonian,
A2.25non-Hamiltonian
graphsemi-Hamiltonian
is semi-and nonHamiltonian, respectively.
Hamiltonian if there exists a path
through every vertex.
1
Figure 2.24
Figure 2.25
Figure 2.26