Added graph reordering capability.