We’re preparing your current view and syncing the latest data.
You are given an undirected graph with n nodes labeled from 0 to n - 1 and an edge list edges where edges[i] = [ai, bi] indicates that there is an edge between nodes ai and bi in the graph. A connected component of a graph is complete if there is an edge between every pair of distinct nodes in the component. Return the number of complete connected components in the graph.
Return an integer representing the number of complete connected components in the graph.