Changes orientation of graphs