getFlightGraph function

Get flight graph