Posts by ana lopes • 51 points
1 post
-
4
votes1
answer1169
viewsQ: Check that the graph is connected
Can anyone tell me how I can implement a method that checks me if an undirected graph is connected and, if not, returns its related components? public void connectComps(){…