Problem 2730. Graph Algorithms 3: Number of Connected Components

Given an adjacency matrix of a simple undirected graph, find the number of connected components.

Solution Stats

73.68% Correct | 26.32% Incorrect
Last Solution submitted on Nov 05, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers25

Suggested Problems

More from this Author44

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!