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

76.19% Correct | 23.81% Incorrect
Last Solution submitted on Nov 16, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers29

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!