0

Convert between graph representations.
code-golfgraph-theorymatrix
What?
Let's say I have this graph:
1
\
\
2 3
\ /
\ /
4
I can represent it in 2 ways:
A list of connected vertices. [[1,3],[2,4],[3,4]]
A boolean matrix which shows which vertices are connected:
c...