Graph Operations: The most common graph operations are:
- Check if the element is present in the graph
- Graph Traversal
- Add elements(vertex, edges) to graph
- Finding the path from one vertex to another
- We need to define 2 structures among one is representing the Node and the second one representing Edge.
How we construct the graph: Sample diagrams: