Code for Dec 23 blog post

Convert a matrix given as a series of edges to an adjacency matrix.