AiTeky Original Interactive Learning & Practice Intermediate
Graph databases: relationships, traversals and finding rings
Store people and their connections as nodes and edges, walk friends of friends and see why joins explode while a traversal does not, run simple graph algorithms, and find a ring of fake accounts that share devices.
A graph database stores things (nodes) and the relationships between them (edges) as first-class data. "Who follows whom", "which accounts share a phone", "which parts go into this product" are all questions about connections, and a graph database answers them by walking the connections instead of joining tables.
In this course you build the graph in plain Python, so every step of a walk is visible. The ideas are the ones real graph databases use; their query languages differ, so check the product's own documentation. All people, accounts and devices 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.
You need basic Python (lists, dictionaries, sets) and a little SQL for one comparison.
- ▶ 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 30 min Free sample 🔒 AiTeky Pass Nodes, edges and properties Describe a small community as a graph of people, cities and the relationships between them, ask who follows whom and who lives where by walking edges, and find mutual friends without writing a single join.
- 02 35 min 🔒 AiTeky Pass Traversals, and why a chain of joins explodes Run friends-of-friends queries three and four hops deep in a graph of 3,000 people, compare the rows a chain of SQL self-joins creates with the nodes a graph walk visits, find a shortest path with breadth-first search, and see when a graph database is not needed.
- 03 35 min 🔒 AiTeky Pass Graph algorithms: groups, hubs and importance Count each person's connections (degree), find separate groups with connected components, and compute PageRank by hand on a small web of links to see why a link from an important page counts for more than many links from unimportant ones.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.

