Week 6 Graphs
Week 6 Graphs
→
Graphs are drawings with dots and (not necessarily
straight) lines arrows
or
→ multi
graph
→ directed
graph
→ undirected graph
→ etc .
Undirected graphs
→ if there is an
edge e between vertices u
and v we say
↳ u and ✓ adjacent
are
↳e is incident with u and ✓
→
vertex of degree 0 is isolated
→
vertex of degree 1 is a
pendant
Handshaking theorem
number of
edges =
sumofdegoezesofvertices
Directed Graphs
→
if there is edge an
going from u to v
,
we
say
↳ u is
adjacent to v
↳ u is the initial start vertex of e
or
→ The in -
→ Then
using
same order list them
-
→
A path is called simple if it does not contain the
Saine edge twice
→ A hamiltonian path is a
simple path passing
through every vertex exactly once
Cycles in
simple graphs
path beginning and with
→ A cycle is a
ending
the same vertex
→
length of a
cycle is number of edges in it
if it does
→ A cycletwiceis simple not contain the same
edge
→ Hamiltonian
vertex
cycle is a
simple cycle passing through every
exactly once .
cliques) denoted
by Kn is the simple graph that contains an
edge
between each pair of distinct vertices
Connected components of a
graphs
→ a connected component of a
graph is a maximal connected
subgraph
then it has
→ if it is a connected graph only I connected
component C itself )
Isomorphism of graphs
→ Gra H G and H are isomorphic if there is an isomorphism
between them .
of H such that
↳ f is a bijection
↳ 1- takes
edges to edges
↳ 7- takes non
edges to edges
non
7 of called an invariant if it
→ A
property graphs is is