AITeky Learn

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.

Locked. Sign up free

Learn

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

  1. 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.
  2. 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.
  3. 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.

  1. 04 40 min 🔒 AiTeky Pass On the job: finding a fraud ring through shared devices A wallet app suspects groups of fake accounts that share phones. Build the account-and-device graph, compare three detection rules by precision and recall, see how a shared internet café wrecks the obvious rule, and write the recommendation for the fraud team.

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