Tag Archives: Tree vs Graph

Tree vs Graph

Tree and Graphs both belong to the Non-Linear Non-Primitive Data Structure. Both use nodes to represent many structures which are used to solve the real-world problems. The tree uses a hierarchical model to represent its structure whereas a graph uses a network model to represent its structure.