9 /* number of nodes or vertices or points */
10 //const unsigned int num_nodes = 10;
13 /* Adjacency matrix */
14 /* for a valued graph */
15 int M
[num_nodes
][num_nodes
];
16 /* for an oriented graph */
17 //bool M[num_nodes][num_nodes];
20 typedef struct succ_list_s
{
21 unsigned int num_node
;
23 struct list_head list
;
25 //succ_list_t* nodes[num_nodes] = { NULL };
27 void display_adj_matrix(int adj_matrix
[num_nodes
][num_nodes
]);
28 void convert_adj_matrix_to_adj_lists(int adj_matrix
[num_nodes
][num_nodes
], succ_list_t
* nodes
[num_nodes
]);
29 void display_adj_lists(succ_list_t
* nodes
[num_nodes
]);