add graph order