Added transpose graph to the main program