read in the graph with status, write final result
read in the graph with status, write final result