Adjacency Matrix Creation Along with Degree of Vertices from a Text File
This is a simple C source code, written in gcc platform (Ubuntu, Linux). It reads data from given input .txt file & generate .dat file as output, which contains the Adjacency matrix along with degree of vertices from the given .txt file. It is for only Unweighted Graph.
Note: Must change the path of the files in code. Hence, Pattern is that the first digit is the number of nodes in the graph. Next there are consecutive two digits show that edge exist between them.
Hope it will help others.
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.