<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Graphs on Rik Kisnah - Blog</title><link>https://www.rik-kisnah.ai/tags/graphs/</link><description>Recent content in Graphs on Rik Kisnah - Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 20 Jan 2026 09:00:00 -0800</lastBuildDate><atom:link href="https://www.rik-kisnah.ai/tags/graphs/feed.xml" rel="self" type="application/rss+xml"/><item><title>Connected Components with Union-Find</title><link>https://www.rik-kisnah.ai/teach/coding/connected-components-union-find/</link><pubDate>Tue, 20 Jan 2026 09:00:00 -0800</pubDate><guid>https://www.rik-kisnah.ai/teach/coding/connected-components-union-find/</guid><description>Given a list of friendships, how many separate friend groups are there? Everyone starts as their own group. Each friendship merges two groups. A tiny structure with two operations answers it almost instantly, and it is what real systems use to track which servers are in which cluster.</description></item><item><title>Design a Web Crawler</title><link>https://www.rik-kisnah.ai/teach/systems/design-a-web-crawler/</link><pubDate>Tue, 16 Aug 2022 09:00:00 -0700</pubDate><guid>https://www.rik-kisnah.ai/teach/systems/design-a-web-crawler/</guid><description>Start with a few pages, follow every link, and visit the whole web without visiting anything twice or knocking any site over. A giant breadth-first search with a to-do list on disk, a seen-set that fits in memory, and a rule to be nice.</description></item><item><title>Clone a Graph</title><link>https://www.rik-kisnah.ai/teach/coding/clone-graph/</link><pubDate>Tue, 13 Oct 2020 09:00:00 -0700</pubDate><guid>https://www.rik-kisnah.ai/teach/coding/clone-graph/</guid><description>Make an exact copy of a graph where nodes point at each other, possibly in loops. The only new idea over a tree is a map from old node to new node, so you never copy anyone twice and never get stuck going round in circles.</description></item><item><title>Flood Fill</title><link>https://www.rik-kisnah.ai/teach/coding/flood-fill/</link><pubDate>Tue, 03 Dec 2019 09:00:00 -0800</pubDate><guid>https://www.rik-kisnah.ai/teach/coding/flood-fill/</guid><description>The paint bucket tool. Click a square, and every connected square of the same colour changes too. Spread to the four neighbours, stop at a different colour or the edge. It is the same search you will use on every grid problem after this one.</description></item></channel></rss>