Graph theory
Graph Theory Introduction:- Graph data structure and traversal Ordering:- of dependent nodes using topological ordering Shortest path:- algorithm in weighted and non-weighted graphs Spanning Tree:- algorithms to connect all nodes in a graph Graphs are excellent tools for modelling complex relationships Adjacency matrix is most common way of representing Graph Adjacent List and Adjacent Sets are alternative data structures Traversing of graph 1) Depth-first 2) Breath-first Relationship between entities example :- Rob drives a Car. Entities:- {Rob, Car} Relationship:- {Drives} A graph can be used to represent above relationship where (V)ertices -> entities (E)dges -> relationship => G=(V,E) Directed and Undirected Graph Directed (Twitter) :- Rob drives his car => one directional relationship (car cannot drive Rob) => Rob -----> Car Undirected (Facebook):- David and Dave plays fo...