
























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!

























Data Structures - Graph
THESE ARE ALL GRAPHS.
0
1 2
3
0
1
2
0
1 2
V(G 1 )={0,1,2,3} E(G 1 )={(0,1),(0,2),(0,3),(1,2),(1,3),(2, V(G 2 )={0,1,2,3,4,5,6} E(G 2 )={(0,1),(0,2),(1,3),(1,4),(2,5),(2, V(G 3 )={0,1,2} E(G 3 )={<0,1>,<1,0>,<1,2>}
complete undirected graph: n ( n –1)/2 edges complete directed graph: n ( n –1) edges
complete graph incomplete graph
Representing Graphs
[0]
[1]
[2]
0
1
2