Updated · By Pete Bromfield, former Head of Maths with IB examining experience

IA idea · Networks, graphs & algorithms

How many flights does it take to get anywhere?

AI HLAI SL Ambitious Also in: Geometry & Voronoi

Research question

In the network of [a set of airports], what is the maximum number of flights needed to travel between any two (the diameter), and which airports would most reduce it if given one new route?

Make it yours, then agree it with your teacher.

Next step: plan this IA free — the planner opens with this question filled in. For feedback on your own draft, the IA package (€39 once) gives you 5 AI feedback credits and every annotated exemplar in full.

Why it makes a good exploration

Airline networks have hubs, which keep journeys short. Building a network from OpenFlights data and asking where a new route would help most is a real network-design problem.

The mathematics you'll need

  • Directed graphs and adjacency matrices
  • Powers of the adjacency matrix to count routes
  • Shortest paths and diameter
  • Effect of adding an edge

Where the data comes from

Routes and airports from OpenFlights; restrict to a region or airline to keep it manageable.

  • OpenFlights data — Airports (with latitude/longitude) and airline routes as CSV.

Real data for this idea

  1. Primary source: OpenFlights data: Airports and routes. airports.dat gives name, IATA code, latitude and longitude; routes.dat gives each route's source and destination airport. Licence: Open Database Licence. The routes file is a 2014 snapshot.

The OpenFlights routes file is a 2014 snapshot: treat it as historical and say so. Links checked October 2026; we link to the data and never copy it. More free data sets.

A possible outline

  1. Choose and justify the subnetwork.
  2. Build the adjacency matrix.
  3. Use matrix powers to find shortest path lengths.
  4. Find the diameter and critical pairs.
  5. Test new routes and reflect on the data's age (a snapshot).

Pitfalls that cost marks

  • Using the whole world network (too large).
  • Ignoring that the data is an old snapshot.
  • Directed vs undirected routes unclear.

Showing personal engagement

  • Include your home airport.
  • Plan a real trip using your model.
  • Compare hub-and-spoke and point-to-point airlines.

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLNot a natural fitThe core technique sits in the AI course or at HL; an AA SL student could use it only as clearly explained new mathematics.
AA HLNot a natural fitThe mathematics is mainly from the AI course; at AA HL the exploration would need an AA-level approach (calculus, proof or probability theory) to reach the top of Criterion E.
AI SLFits — ambitious at SLDirected graphs and adjacency matrices; Powers of the adjacency matrix to count routes
AI HLGood fitDirected graphs and adjacency matrices; Powers of the adjacency matrix to count routes

Level: Ambitious. Suits confident students; expect to learn some mathematics on your own. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Reflection (D)

For this idea, start with the weak points: using the whole world network (too large); and ignoring that the data is an old snapshot. Say how each one affects your answer.

Use of mathematics (E)

SL: directed graphs and adjacency matrices; powers of the adjacency matrix to count routes; shortest paths and diameter; effect of adding an edge, each explained in your own words and carried out correctly.

How networks & graphs explorations reach the top bands in general: Networks, graphs & algorithms IA ideas. Guides: A · B · C · D · E · self-grade sheet.

Taking it further

Weight edges by distance and compare the shortest-by-flights and shortest-by-distance routes.

Extending it for HL

Add an HL technique the question genuinely needs: what an HL networks & graphs exploration adds.

Frequently asked questions

Which IB Maths course is this IA idea for?

It works for AI HL and AI SL. We rate it Ambitious: it suits confident students, who should expect to learn some mathematics on their own.

What mathematics does this IA use?

Directed graphs and adjacency matrices, powers of the adjacency matrix to count routes, shortest paths and diameter and effect of adding an edge.

Where can I get data for this IA?

Routes and airports from OpenFlights; restrict to a region or airline to keep it manageable. Checked sources and tools: OpenFlights data.

Turn this idea into your IA

The planner opens with “How many flights does it take to get anywhere?” filled in: the question, the maths and the data sources.

Plan this IA free

Your plan is kept in this browser. A free account keeps it with your drafts on any device: Join free · Sign in

Also: free IA self-check · A–E checklist (PDF) · have a draft? AI feedback or a review with Pete (€100)

Writing it up: how to write a Maths IA, step by step · structure and format · mistakes that cost marks · annotated exemplars, marked on every criterion

Similar ideas

All networks & graphs ideas · AI HL ideas · AI SL ideas · All 239 IA ideas