Find Degree for each Node of given graph by Pthread library.
The size of graph can be very large, so you need to parallelize program to multiple threads.
Number of threads to use should be given from command line.
INPUT(graph.txt):
first line contains N, number of cities.
Next N lines contain N numbers (1or 0), if there edge from I city to J city.
example:
4
0 1 1 0
0 0 0 1
1 1 0 1
0 0 0 0
OUTPUT(tour.txt):
Degree of each city separated by space.
example:
3 3 4 2