Add graph ordering