Graph is a non linear data structure, it contains a set of points known as nodes (or vertices) and set of links known as edges (or Arcs) which connects the vertices. Generally, a graph G is represented as G = ( V , E ), where V is set of verti...See more
ces and E is set of edges.
A tree, is a finite set of nodes together with a finite set of directed edges that define parent-child (Hierarchical )relationships. Each directed edge connects a parent to its child.
Answer the Question