Write minCutRunner to read text file and format it into adjacency list