AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Graph databases: mutual friends, steps apart and the celebrity node

Rank people you may know by mutual connections, measure how many steps apart two people are, and see why one very popular node can make a friends-of-friends query a million times heavier.

A graph database is built for the question "who is connected to whom, and how". Recommendations, fraud checks and routing all follow links. Two ideas carry most of the work: mutual neighbours and steps apart. And one trap: the supernode.

This course models a graph with dictionaries and sets in small Python programs you can run in your browser. Python stands in for a graph database: the data is not stored in one, but the traversals are the same. Check your graph database's documentation for its query language and for limits on traversals. All names and numbers are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No graph experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 20 min Free sample 🔒 AiTeky Pass People you may know Suggest new connections by counting mutual friends, and rank the candidates so the person with the most shared connections comes first.
  2. 02 20 min 🔒 AiTeky Pass Steps apart Find the shortest path between two people by exploring outward one step at a time, and count how many people lie within two steps.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 30 min 🔒 AiTeky Pass On the job: the celebrity node One account with two million followers makes the people-you-may-know query take seconds. Count the work, compare four fixes by effort and risk, choose, and write the note.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in