The definition of graph in C : <p>I set the definition of adjacency list node like this:</p>

<pre><code>typedef struct node_type{  
int data;
struct node_type *link;
}node;
</code></pre>

<p>The definition of adjacency list:</p>

<pre><code>typedef node *list;
</code></pre>

<p>The definition of graph:( A graph is an array of adjacency lists)</p>

<pre><code>typedef struct graph_type{
int no_of_vertex;
list *array;
}graph;
</code></pre>

<p>Was it a correct definition anyway?</p>
