<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>图 on Jeanphilo Blog</title><link>https://jeanphilogong.github.io/jeanblog/zh/tags/%E5%9B%BE/</link><description>Recent content in 图 on Jeanphilo Blog</description><generator>Hugo -- 0.168.0</generator><language>zh-cn</language><lastBuildDate>Thu, 02 Jul 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://jeanphilogong.github.io/jeanblog/zh/tags/%E5%9B%BE/index.xml" rel="self" type="application/rss+xml"/><item><title>LeetCode 200：岛屿数量，把网格陆地看成连通分量</title><link>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/hot100/union-find/200-number-of-islands/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/hot100/union-find/200-number-of-islands/</guid><description>从网格中相邻陆地的合并压力出发，用并查集推导 LeetCode 200 岛屿数量，讲清二维坐标映射、陆地初始 count、union 后 count 什么时候减少。</description></item><item><title>LeetCode 684：冗余连接，用 union 失败找到成环边</title><link>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/union-find/684-redundant-connection/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/union-find/684-redundant-connection/</guid><description>从树加一条边必然成环的压力出发，用并查集推导 LeetCode 684 冗余连接，讲清 1-indexed parent、union 返回值和为什么 union 失败就是答案。</description></item><item><title>并查集模板：find / union / count 从零推导</title><link>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/hot100/union-find/union-find-template/</link><pubDate>Tue, 30 Jun 2026 00:00:00 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/hot100/union-find/union-find-template/</guid><description>从一个集合合并小任务出发，推导并查集模板中的 parent、find、union、count 和路径压缩，最终得到可直接背写的 Python 模板。</description></item><item><title>LeetCode 547：省份数量，把邻接矩阵看成图的连通分量</title><link>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/hot100/547-number-of-provinces/</link><pubDate>Wed, 27 May 2026 00:00:00 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/hot100/547-number-of-provinces/</guid><description>从邻接矩阵的直接连接关系出发，把 LeetCode 547 省份数量转成无向图连通分量计数问题，再逐步推出 DFS、BFS 和并查集解法。</description></item><item><title>克隆图：哈希表 + DFS/BFS 实现无向图深拷贝（LeetCode 133）</title><link>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/133-clone-graph/</link><pubDate>Thu, 19 Mar 2026 13:18:26 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/alg/leetcode/133-clone-graph/</guid><description>用原节点到新节点的映射表实现无向连通图深拷贝，覆盖 DFS 与 BFS 两种写法、环处理、正确性分析与多语言可运行实现。</description></item><item><title>社区发现入门：Louvain 与 Label Propagation 的工程化选型 ACERS 解析</title><link>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/graph/80-community-detection-louvain-label-propagation/</link><pubDate>Mon, 09 Feb 2026 09:59:58 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/graph/80-community-detection-louvain-label-propagation/</guid><description>围绕社区发现的三类核心用途（群体识别、图分区、冷启动分析），系统讲解 Louvain 与 Label Propagation 的原理、复杂度、工程取舍与多语言可运行实现。</description></item><item><title>k-hop 与可达性查询：BFS 限制、Reachability 索引与 2-hop Labeling ACERS 解析</title><link>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/graph/30-k-hop-reachability-and-reach-index/</link><pubDate>Mon, 09 Feb 2026 09:52:17 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/graph/30-k-hop-reachability-and-reach-index/</guid><description>围绕 k-hop 与可达性查询，系统讲解 BFS+hop 限制、为何一般不全算传递闭包、以及工程常用的位图索引/2-hop labeling 思路，并给出可运行多语言实现。</description></item><item><title>BFS / DFS 工程入门：k-hop 查询、子图抽取与路径可达性 ACERS 解析</title><link>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/graph/10-bfs-dfs-k-hop-subgraph-path-existence/</link><pubDate>Mon, 09 Feb 2026 09:44:11 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/graph/10-bfs-dfs-k-hop-subgraph-path-existence/</guid><description>围绕 k-hop 查询、子图抽取、路径可达性三类高频图任务，系统讲清 BFS/DFS 的迭代模板、early stop 剪枝与 visited bitmap/bloom 选型，并附多语言可运行实现。</description></item><item><title>随机迷宫生成：深度优先回溯法</title><link>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/random-maze-generator/</link><pubDate>Sat, 24 Jan 2026 13:20:24 +0800</pubDate><guid>https://jeanphilogong.github.io/jeanblog/zh/dev/algorithm/random-maze-generator/</guid><description>用深度优先回溯生成迷宫，并提供可运行示例。</description></item></channel></rss>