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.
- ▶ Run code in your browser. Nothing to install
- ✓ Exercises that check themselves
- 📖 Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 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.
- 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.

