[LeetCode] Number of Connected Components in an Undirected Graph 无向图中的连通区域的个数

Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to find the number of connected
posted @ 2016-01-28 15:14  Grandyang  阅读(17362)  评论(2)    收藏  举报
Fork me on GitHub