Cody

# Problem 475. Is this group simply connected?

Solution 455240

Submitted on 15 Jun 2014
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% node_pairs = [8 9; 8 3]; tf = true; assert(isequal(isConnected(node_pairs),tf))

Error: Output argument "tf" (and maybe others) not assigned during call to "/users/msssystem20/isConnected.m>isConnected".

2   Fail
%% node_pairs = [ 1 2; 2 3; 1 4; 3 4; 5 6 ]; tf = false; assert(isequal(isConnected(node_pairs),tf))

Error: Output argument "tf" (and maybe others) not assigned during call to "/users/msssystem20/isConnected.m>isConnected".

3   Fail
%% node_pairs = [ 1 2; 2 3; 1 4; 3 4; 5 6; 6 2 ]; tf = true; assert(isequal(isConnected(node_pairs),tf))

Error: Output argument "tf" (and maybe others) not assigned during call to "/users/msssystem20/isConnected.m>isConnected".

4   Fail
%% node_pairs = [ 1 2; 2 100]; tf = true; assert(isequal(isConnected(node_pairs),tf))

Error: Output argument "tf" (and maybe others) not assigned during call to "/users/msssystem20/isConnected.m>isConnected".

5   Fail
%% node_pairs = [ 1 2; 50 100]; tf = false; assert(isequal(isConnected(node_pairs),tf))

Error: Output argument "tf" (and maybe others) not assigned during call to "/users/msssystem20/isConnected.m>isConnected".

6   Fail
%% node_pairs = [ 4 17 ]; tf = true; assert(isequal(isConnected(node_pairs),tf))

Error: Output argument "tf" (and maybe others) not assigned during call to "/users/msssystem20/isConnected.m>isConnected".