




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Varying Applications (examples) ļ®
ļ®
ļ®
A generalization of the simple concept of a set of dots, links, edges or arcs. Representation: Graph G =(V, E) consists set of
ļ® Loop: A loop is an edge whose endpoints are equal i.e., an edge joining a vertex to it self is called a loop. Represented as {u, u} = {u} ļ® Multiple Edges: Two or more edges joining the same pair of vertices. u
u v e 1 w e 2 e 3
u w v
u w v e 1 e 2 e 3 e 4
graphs ļ® (^) u and v are adjacent if {u, v} is an edge, e is called incident with u and v. u and v are called endpoints of {u, v} ļ® (^) Degree of Vertex (deg (v)): the number of edges incident on a vertex. A loop contributes twice to the degree (why?). ļ® (^) Pendant Vertex: deg (v) = ļ® (^) Isolated Vertex: deg (k) = 0 Representation Example: For V = {u, v, w} , E = { {u, w}, {u, v} }, deg (u) = 2, deg (v) = 1, deg (w) = 1, deg (k) = 0, w and v are pendant , k is isolated u k w v
ļ® (^) For the edge (u, v), u is adjacent to v OR v is adjacent from u, u ā Initial vertex , v ā Terminal vertex ļ® (^) In-degree (deg - (^) (u)): number of edges for which u is terminal vertex ļ® (^) Out-degree (deg + (^) (u)): number of edges for which u is initial vertex Note: A loop contributes 1 to both in-degree and out-degree (why?) Representation Example: For V = {u, v, w} , E = { (u, w), ( v, w), (u, v) }, deg-^ (u) = 0, deg+^ (u) = 2, deg-^ (v) = 1, deg+^ (v) = 1, and deg-^ (w) = 2, deg+^ (u) = 0 u w v
Theorems: Undirected Graphs Theorem 2: An undirected graph has even number of vertices with odd degree even oof V ļ ļ½ ļ ļ ļ ļ ļ½ ļ½ ļ« ļ„ ļ„ ļ„ ļ„ ļ ļ ļ ļ 2 1 2 v V 1, v V u V v V secondterm deg(u) Hencesecondtermisalso even thelastinequalityisevensincesumis 2e. Thesumof thelast twotermson therighthandside of Thefirst termin therighthandsideof thelastinequalityis even. deg(v)isevenfor v V 2e deg(v) deg(u) deg(v) Pr 1 isthesetof evendegreeverticesandV2referstoodddegree vertices