change flight to graph