finished read-in from contest graph file
added write_contest_graph function