February 2017
Intermediate to advanced
274 pages
5h 58m
English
Let's start with a set of simple graph queries to understand flight performance and departure delays.
For example, to determine the number of airports and trips, you can run the following commands:
print "Airports: %d" % tripGraph.vertices.count() print "Trips: %d" % tripGraph.edges.count()
As you can see from the results, there are 279 airports with 1.36 million trips:

To determine the longest delayed flight in the dataset, you can run the following query with the result of 1,642 minutes (that's more than 27 hours!):
tripGraph.edges.groupBy().max("delay") ...Read now
Unlock full access