Graph Theory handwritten notes
Graph Theory handwritten notes
A G ordened
an
tipla (VCG), E(G), $)
Consists e a nen-empty &er. V callad the set e
ventice tea a p G , E saicd to be te Set
ege e
gaph G ad o s a. mappín em
t &e .
edaes E to a set o ovdlered corm unovdeAe
paws elemeni V a
Eg L G =(V,E,) wheu V
Vi, , V3 an
E-et, ez, ea. e es j and &
dofined by
( ){ ve3, ¢(e) , -
s , dtes)-{va,v»3
es
e
Va u V
Siz garh
ThA n elemens in h e e g e ek acalled
the size G.
Noto
AdjacRnr ueice
a diead ndigaph.
Scanned by CamScan
Muti p Degne a ventex
dt)=
Diet
Miedgap% Undiseared i eg:
d ) 2
Ye Yes
5. Pcemdo apt Undiach4
ds) 3
andahaking Theorem Jn-daghes Out-dagr.aa :
*Satemenefo ay 9ap
with E ges Ina diascted aph, ha ng edgas withV
2E. o thein minas verex is callad
VveniCe
d (V)
= tA in-dagas
Ir danoted y
deg (v)
Proof In a diacted gaplh. tae
hai
n esqu r V
kor GG(% 6) be any
gnapl. a iniuas vete catled our. dagha
Since eack ege contibutes uicA ai a dngr fr
dso ted dag (v).
he Sum e dagheas a a l nicea G
ice a he ne o egas in No
That d(Vi) 2.
The 6un of deghaa 4
s called the total
out-dagn ea ventex
dognas the
f venrex .
A
Mmpa nape n uich e is
vacty ona
ed betugn encA
pain o dhnct uetices
cated o
cmplasta qaph
Since each of d(v;) even, and eac d()
odd Tha Cemplata ape ' eeicas u danstad
Sum o odd no u en
Suoe RT AA n a
a can ba n-. callada s-pardte qaph .
nte 6 V by an an G cat
Cn)+ . . t o n tauni n-1) 2 cempleby bipnita qa& and danstad by
Kmn
n{ni) -'ae
en-9 i-patite g',apa
B
egutas GraA Cemplutsy bi- padtt a p
e u y erax o a sinpla a a has *a sama
At
dagnas, ter Ae
qrapa iu alld a
hegula 9aPph. Ka
4 eae eex i a
hegula hap& has a
dagea
tRa hap à caltad n-egulas h
ADO) 2-egulan
(since enca edge
go
Lpnyects 2 vetce
Connectedness n unduhacad gaahs Sapanhg on both Ridos,
An uniotd haph u said to be Connectadi a
pathbehuan eey pain o diitinet vektcu o
itj
A a p a tha is not ceueclud i calted (ni-t)* s *+k-2nk
ctiscenms cad
G
Note
diacewnaetad aA e
-n t' znk
ameCo unio
ted
wick &a ho, Cornne ur agds Each
ex Theedajom +knkran
Cemzed kus qap, a a
callad e eennead
Cenp onen a gaph. n +K-2nk + 2 n - k
Now, Ae max. nf e a e in e iM compran
The maxirum ne dges in a sinpte diuconnecta
w APh. 6 i h n uetices and k componek
n-) (nk+
Max. np eags =
nini-
lor the ng of ventices in the
i compnet s
be n (n1), hen n nat. . +hk n (o
-
Henca, En-1 n-k
h+ank+2n- K
Scanned by CamScanne
Connectedness in ndiiucad ghaphs
(n-1)'+ ag
irj
(ng)n-) * * ank
A hapt Hat iu not counecud called
Z (m-)* s *+k*-ank
discenn eed.
No A
discewnactad aA khe unio
e conacted sur ghapts. Eac pa +k s n k=2nk
wich a ho, Cormnn lex The djom an
Comnacted +K*- ank +2n-k
uqaphs ae. call e cene
Cempenens oea ghaph i
No, R max. n? ega in Re comomead
Hence,
n- n-k +2nk+2n- K2
F
Scanned by CamScanner
nev a
Thee propeties aw olld an invanant
A
Cemplata y b pankita gaph Km,n isononphic quphs.
any o Kaa condiuans ane not sauugad
Net
in u naphs, hay Cannot be isomophie.
S - 9 . 1
H
an H caieeda Apanning subgnaph Connectivi ty
*i Gnead Pas cyeles
A spanning sunapk not
cenain al iu edges. (skau conain a t venkices) arernating
pa6 in a gapk a a inite
Path -
A
verttcs ansd dga4 beginaing
b
eAnancR
etucas,
suca
that each dge
endin9
R
veacAPreceang and followug
neidEnt
en
na pah aa duinee, it
i i . E t o e.ges
s c a l l u d a mple pat
Spanning Sughaph
Gnop
v a imple path
Isomonphic aph Since no edge appeas
more than oncaa.
G2 a said to be isomorphic
Turo naphs Gi and
a ento-ome
Vz es V. eV2
if tene exuta V,e, V2 e
otten
to eact
veex 4et whick preleie a path since it conains
e
coeipondence bss
e tunce.
adjacena e vetices.
(simpla or genera)
The
n edga in a p a
Isomohphic aphs kaue Note:
caled the angth a path
vebices
i the same ng
) ta sama ng eges
comespending veniecau with t a sama
dega
i) the
Scanned by CamScanner
Mat ap gnapha
wwa adaca
3nedancs naiA
e G be a gph w aces
.oteAwise
ú d incidsu madw
Scanned by CamScanner
[ - a n k +n- ]
A COnns ctd qNap c o r a s an Cus e r
AC iu vicas kps euer
das
A cemns tud aph cowuns au enlAn path
In-t +), ibas eactty venucas o sdd
dagras.
T Cules pat wuu kave H odd d g
e n i ces as i end points
eulenan and
Hanit tonan Gaphi
Hamitoian patu
Cukesia aM-: A pa
m
gpa G path t
agapk
ncludes each
a caslsd emi tnan
v e r e e G. aack
called Eulenian pa, i} it
netud aa tack
ige %G eacey ence
tena cimcuit an a_rCa'
Acaenit a ap& G caiod Hamitonn
calles Gulenian er 't enetuudas eack vean s G eraP **a
cur,
is it axcept Staung 2 es eucas wuc a
Euleuian gnoe6 ne
t sa ). wies
aFP eas rcs
AgapA cemrainig Eutenian ckr. s caitad Hamondan Gr ap
A gnapC centaiiug Hami ttonian ck. a
G G7
Graph G cembains an euteniaa path b B GD The naph G1 has kaamitowan ckr, nameey
namay B-D-c-B-A -D, sinc 1t inckudes that in his ckr, au
A-B-C-D-A. we ncte
ech a edgs exacy mce. but not
vedices apPpear (eaeh onc enee)
Goaph Gra Contains
a enlarian ckr.
namaly a th edges.
A-E-CD-¬-B-A, since it inctuda eaeh Tha gep& Ga has hamikonia path namey
ek
t a eana hamittonian
nceacty i an Eulenian Gmph A-B-C - D . but not a
Scanned by CamScanner
Spann ing bees
h e sub graph T
o a connected Aaph Edges i k mia.
a h centaaining au the v@tices ww weight tnar do
abdy telstted
G, 7han o ioim
T
caled a spanning bee eda a a
c jit
G cceuively odda
9 baan kelactad
I G has
veiau, auy spaming beu o G
w alo have a vetics ana d
edge ey Find in
wing KAumas's algovitm. spannune
"bu kr
VT wgi gaph
Graph 7.V N
Spanning hes
No
Euy emecud
h aph Ras arlear I
obvious whan Ghas 4panning Kee . we first amange Me
i ow no ckr., asG h e esges u adga in h
inuuasing ovdaa
apanning th procaad as per Khwkal's
a4 G haa a He, n
(ne % algomMm
ckr., we can
ek a vetica) 5
daleting an
edae rem ha cx spann ing &e by Max.
edges ncuded » 5-
Miimum Spanning bee
weigh Inctudan e I icudas.
Spann crkma
G a connecbd weightad aph, ta
AG
panning b G with the smattest
tobadeigh
i callad the minimum pann ng yes
thee G
AC
cE A-C-6. bmad)
sal's Alqoritkm
1 BC
e edges tRe giuen haph G ane
rdeu ot incaaking weighs. amaiged n tk BE
DE
etge Gwitm min.
weight
hagthad Apanning baa Aeleckad"a an edgs AD
AD
Scanned by CamScanner
possibla T
contain a
a pain o vetics ckr.. This
Vi and maon tha
oo o disinct v; b whuch
puhs ex
ut, tw
wich is
Hence T
Cannot haye a
o
cohadicien.
ckt. and
ThenatA un due ctacd aph , as thac
an a be T
Any cincuit
hapa uwith n
venticks and n-)
At ep * Ae ege conecting + vedices Vi
Scanned by CamScanner
Find min
y kmkal's algoitm MAn k a l spauni
's
ue jes re
wegTas J
agoni tRn
D
a
5
na6 Max. edges
Edge eigAr
Inclaudad in a
panning ue or not| Ck. tomed
not includos, weigh Spanning bua
4no inelue
or ne C. femad
EF
ec
Ae 2
Yes eF 22
Yes
CD No 23
Yea
CD-B-C ck
3F CD 29 Mes
Ye
CG No
NO D-F-B-D ckr. C6-D-c ek
AB Ye
AB
DE e A-.F-¬-A
DE
No ---e
AE
CF
C-F--c
AF 21 DH
44
EF
45
FG 6a
otd weight = 56
Tota e n h t = 19
Scanned by CamScE
Use Kakal's
De io ts algoi m o
weigkacs qaph:tind o mun.
spani
EH
Yes
CF
Yes
BC
1es
NOa Tieir ae 5 ote akranatiue mun.
FL
FIAEF teer)
e s g total tengtk 15, whose edges Spanntu
ae isted FH No FHEF (ckr)
eles'. GH Ye
) AE CD, Ac, ec
AB
)AE. CD, Ac, E BE
DG
DE
(4) AECD, CE. BC
DH
(5) AE. cD, CE, BE
Total eiaht = 22
Scanned by CamScanner