- Graph consist of vertices and edges.
- They are used to model many realworld examples ( likes cities, network…)
![]() |
| Graph |
Implementing a graph with 4 vertices (A,B,C,D) and 4 edges.
![]() |
| Graph |
Implementing a graph with 4 vertices (A,B,C,D) and 4 edges.
Tree data structure simulates a hierarchical tree structure, with root and subtrees represented by linked nodes. Some Terminology Root...