https://mp.weixin.qq.com/s?__biz=MzA5MzE4MjgyMw==&mid=2649455776&idx=1&sn=e0fe1365a2d24c04706bf824973496e8&chksm=887e12a8bf099bbee7b4e9227719d40057ba6d96465c6e8ab00ccb3a4fbba91ce4f325159daa&mpshare=1&scene=1&srcid=0317pftAEvuDwsRRefuHbVJM&key=b16de343c5ecfc510c76d92e3c9591e6cf284cfc5548a2c6ca1f868688bea70590cac2984499bae61764d5cc9802e91a99d2e1bf73827702984800d009f8d39d9b4054cf20bd450f0a801b453463e44c&ascene=0&uin=MTUyMzg3NjAwMA%3D%3D&devicetype=iMac+MacBookAir7%2C1+OSX+OSX+10.12.3+build(16D32)&version=12020010&nettype=WIFI&fontScale=100&pass_ticket=0AiIToHJN8yqpuqRAsA5PaaQMJr8KtvlnZ2EqkX0zx%2BEZweRvHKyF%2ByjmycpUbVn
From 九章算法:
想到图论连通性我也是服气。
DFS搜索版本:
Floyd 版本