For a project, I need to take an adjacency matrix as input in a C program from a text file. The text file contains the edge details of the graph for which the matrix is to be constructed. The format of the text file is given below.
5 4
3 2
0 1
1 0
4 5
Each line contains an edge, shown by tab-separated values. For example, in the first line, there is an edge from node 5 to node 4. I need to take input from this file and show the matrix as output in C. Can anyone please help me how to proceed?