Compiles a visual text representation of a graph into a vertex list and adjacency matrix.