Dirty Hack: Change in_edges and out_edges places