Graph: Nitin Upadhyay March 08, 2006 Bits Pilani Goa
Graph: Nitin Upadhyay March 08, 2006 Bits Pilani Goa
Nitin Upadhyay
March 08, 2006
Bits Pilani Goa
Multigraphs
Like simple graphs, but there may be more than one
edge connecting two given nodes.
A multigraph G=(V, E, f ) consists of a set V of
vertices, a set E of edges (as primitive objects), and
a function f from E to
{{u,v}| u,v∈V ∧ u≠v}.
The edges e1 and e2 are called multiple
or parallel edges if f(e1) = f(e2). Parallel edges
E.g., nodes are cities, edges
are segments of major highways
Multiplicity matrix
A D
B
Multiplicity matrix
matrix
C
A D
B
C
A B C D 2 1
A 0 2 2 1 1
A D
B 2 0 0 1 1
2
C 2 0 0 1 B
D 1 1 1 0
Euler Graphs and Circuit
A graph is said to be Euler graph if it contains Euler
circuit.
A multigraph is said to be Eulerian multigraph if it
contains Euler circuit.
Euler Circuit and path
An Euler circuit is an Euler path whose endpoints are
identical.
An Euler path in a graph is a path that includes each
edge of the graph at least once.
An Euler path in a multigraph is a path that includes each
edge of the graph at least once and intersects each
vertex of the multigraph at least once.
Example
Problem:
Construct the de Bruijn digraph G(3,2)
Solution:
P = 3, n = 2
W = {0,..,p - 1} = {0, 1, 2}
Vertex word = n – 1 = 1 {0 or 1 or 2}
Arc = n-letter word
Example 1
De Bruijn digraph
20
00 11 22
01 12
0 1 2
10 21
02
Example 2
Problem:
If x = 21134 is a word in W(4, 5), constructs
the arcs incident from the vertex x
Solution:
Take t = 1134.
Arcs can be drawn from x to t0, t1, t2, t3, and
t4 to denote the five six-letter words 211340,
211341, 211342, 211343, and 211344 resp.
De Bruijn as Eulerian graph