Professional Documents
Culture Documents
(tahun 1736)
Bisakah
melalui setiap jembatan tepat sekali
dan kembali lagi ke tempat semula?
C
A D
B
Aplikasi Graph
Rembang
Kudus
Brebes Demak
Tegal Pemalang Kendal
Semarang
Pekalongan
Slawi Blora
Temanggung Purwodadi
Salatiga
Wonosobo
Purbalingga
Purwokerto
Sragen
Banjarnegara Boyolali Solo
Kroya Sukoharjo
Cilacap Kebumen Magela ng
Klate n
Purworejo
Wonogir i
Living room
Living room
Sitting
room Hall
study study Sitting room Hall
Multiple edge
u loop a c e
w
Subgraph
• Definition. Let G be a graph with vertex-set V(G) and edge-list E(G). A subgraph of G
is a graph all of whose vertices belong to V(G) and all of whose edges belong to E(G).
G a subgraph of G
v v
Multiple edge
u loop loop
w w
The degree of a vertex
• Definition. Let G be a graph without loops, and v be a vertex
of G. The degree of v is the number of edges meeting at v,
denoted by deg v.
• The hand shaking lemma. In any graph , the sum of all the
vertex-degrees is equal to twice the number of edges.
• Proof. Each edge has two ends : it must contribute exactly 2
to the sum of the degrees.
Isomorphic graph
v w v
w v
w
Paths and Sycles
Definition. A walk of length k in a graph G is a succesion of k
edges of G of the form uv,vw,wx,…yz. (denote this walk by
uvwx…yz and refer to it as a walk beetwen u and z)
2 3
0 otherwise.
DIGRAPH
Definition. A digraph D consist of a set of elements, called
vertices, and a list of ordered pairs of these elements, called
arcs.
The set of vertices : vertex-set (V(D).
loop
Multiple
arcs
Definition. Let D be a digraph with vertex-set
V(D) and arc-list A(D). A subdigraph of D is a
digraph all of whose vertices belong to V(D)
and all of whose arcs belong to A(D).
Digraph D Subdigraph of D
v
v
u u
w w
Definition. Two digraphs C and D are
isomorphic if D can be obtained from C by
relabelling the vertices.
v 1 3
Noteu that: w 2
uv corresponds to 12
vw corresponds to 23
wv corresponds to 32
uw corresponds to 13
Adjacency and Incidence
Definition. Let v and w be vertices of a
digraph. If v and w are joined by an arc e, then
v and w are said to be adjacent
e is said to be incident to w
Example:
e
v w
Definition. Let D be a digraph without loops,
with n vertices labeled 1,2,3,…,n. The adjacency
matrix M(D) is the n x n matrix in which the
entry in row i and column j is the number of arcs
from vertex i to vertex j.
Definition. Let D be a digraph without loops,
with n vertices labeled 1,2,3,…,n and m arcs
labeled 1,2,3,…,m. The incidence matrix I(D) is
the n x m matrix in which the entry in row i and
column j is
1, if arc j is incident from vertex i,
-1, if arc j is incident to vertex i,
0, otherwise.
Paths and Sycles
Definition. A walk of length k in a digraph D is a
succesion of k arcs of D of the form uv,vw,wx,…yz.
(denote this walk by uvwx…yz and refer to it as a walk
from u to z)
all the arcs are different: trail
all the arcs and all the vertices are different: path
Walk of the form uv,vw,wx,…yz,zu: closed walk
Closed trail whose vertices are all different : cycle
Definition. A digraph D is connected if its underlying
graph is a connected graph. It is strongly connected if
there is a path in D from any vertex to any other.
Definition. A graph G is orientable if it is the
underlying graph of strongly connected
digraph.
• TERIMA KASIH