Edited the code to Read the Data and added code to Calculate/plot the in/out degree distribution