Parse SNAP undirected graph format to return Laplacian matrix