2.2 Data Structures

 

• A simple data structure for representing a tree is shown below.

 

 

• Consider the graph below.

 

 

• Representing a tree in Scilab

 

• Representing a graph in C