debugging the function to read an input file of graph connections