How to count amount of related components on an adjacency matrix

Viewed 31

I have to create a method that returns the amount of groups in the graph but i dont find the way to do it,i just need a guide of how i should do it,thanks you. Graph example

0 Answers
Related