input is like this
5 // is # of vertices
1 1 0 1 // 1<->2 1<->3 1<->4 1<->5
0 0 0 // 2<->3 2<->4 2<->5
0 1 // 3<->4 3<->5
1 // 4<->5
I want to make adjacency matrix, when that input is inserted. how to do that?
I made already matrix like this
array = (int)malloc(sizeof(int)*numVetex);
There are many ways to do this. Here is one of them: