





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!






1
gy,
{( (^) b) ( E= V= {a,b,c,d,e}b^ ) ( (^) d)
d (^) e c
3
CS
electronic circuits
CS
communications) networks (roads, flights, karachi Maree^ LAXIslamabad Abbott
Lahore rabad Muza-
(^) v (^) is the number of edges
the out-degree of a vertexthat have (^) v (^) as the headthat have (^) v (^) as the head (^) v (^) is the number of edges
that have (^) v (^) as the tail
7
(^376)
Legend 54 8
Directional path Bi-directional paths
a c (^) b e c b
the first vertex cycle: (^) simple path, except that the last vertex is the same as d e
a c a c d ab d e
9
not connected
h (^) h (^) l
forest - collection of treestree - connected graph without cycles for (^) est tree tree tree for (^) est
13
(^) is one in which the pair
An (^) undirected graph (^) is one in which the pair
of vertices in a edge is unordered, (v (^0) , v (^1) ) =
a directed pair of vertices <v A directed graph is one in which each edge is(v (^1) ,v (^0) ) (^) v > !=
a directed pair of vertices, <v head^ tail^0 , v^1 > != <v (^1) ,v (^0) >
15
j ) is in E(G), adj_mat[i][j]=
need not be symmetricsymmetric; the adjacency matrix for a digraphsymmetric; the adjacency matrix for a digraph The adjacency matrix for an undirected graph is If there is no such edge in E(G), adj_mat[i][j]=
1 0^ Examples for Adjacency Matrix ⎣⎦ 1110 ⎢⎥ 1101 ⎢⎥ 00 ⎢⎥ 101110 ⎢⎥ 01 ⎡⎤ (^01113120) G 2 ⎣⎦ 0 ⎢⎥⎢⎥ 1 ⎢⎥ 0 ⎡⎤