fixed up graphAlgorithms print adjacency matrix function