Wrong test case, Matrix not symmetric

google
Tags: #<Tag:0x00007f24220f5cb0>

#1

As per the question the graph is undirected,
while the matrix doesn’t look symmetric.
3 703 279 43 1 0 0 1 1 1 1 1 0

  703  279  43

703 1 0 0
279 1 1 1
43 1 1 0