Removed outdated and unused printGraphAsMatrix function and changed prettyPrintMatrix to match spec's output