Reverse the graph#10048