Академический Документы
Профессиональный Документы
Культура Документы
INTERAKSI 3
Kneipkof Island
Pregel River
a
b c
Find a way to walk about the city so as to cross each bridge exactly once and then return to the starting point.
2
multiple edges
adjacent simple graph (GRAF RINGKAS): an undirected graph without loop or multiple edges Degree/order (DARJAH/PERINGKAT) of a vertex: number of edges connected
Discrete Math by R.S. Chang, Dept. CSIE, NDHU 3
x y walk: no restriction a-b-d-a-b-c path: no vertex can be repeated a-b-c-d-e trail: no edge can be repeated a-b-c-d-e-b-d
closed if x=y closed path: cycle (KITAR) (a-b-c-d-a)
d
c
A walk: a sequence of edges in which the end of one edge (except the last) is the beginning of the next
A trail is a walk in which no edge is repeated
A
B
D C
0
1
1
0
2
1
1
0
C
D
2
1
1
0
0
1
1
0
7
d c
b
A complete graph is a simple graph in which every pair of vertices is connected by an edge c
e
K5
Planar Graphs
A graph (or multigraph) G is called planar if G can be drawn in the plane with its edges intersecting only at vertices of G.
K4
K5
10
Planar Graphs
Bipartite graph and complete bipartite graphs (Km,n) K4,4
11
a path or cycle that contain every vertex There is no known necessary and sufficient condition for a graph to be Hamiltonian.
a d g
b e h
c f i
12