Docsity

Graphs in Data structures full notes, Study notes of Data Structures and Algorithms

Partial preview of the text

Download Graphs in Data structures full notes and more Study notes Data Structures and Algorithms in PDF only on Docsity!

Siddhoarth-4-S Graphs A qraph G can be defined a& an oAdered et G(V,E) where VG) nepdesents set of vertices and ECG) as 4tts of edges used to connect these vertices . @®—O—O Q—-O—+-© \o. a \ J @—@ © er pAaph Directed graph oP paves fet ‘art path ¢ ? adjacent loop Connected graph: A graph whee some path exists b/w any wo verbices te thee and no J otated nodes Complete gaaph : A graph in which evay node is tonnecEed to evay othe node. Weighted gAaph*. each edge is assigned with some data like length / weight . IE is fepresented by wle). Digraph : tt iS a directed graph in which each edge is aksociated with some difection . Degree of the node i4 defined as the no- of edges connected with fhat node.