Print NxN matrix with brackets From https://stackoverflow.com/questions/4328442/how-can-i-display-a-n-x-n-matrix-of-random-numbers-in-java
public void printGraph(double[][] array, int n) {
for (int i = 0; i < n; i++) {
System.out.print(" [ ");
for (int j = 0; j < n; j++) {
System.out.print(array[i][j]);
}
//Put println instead of print here to have each row in a new line
System.out.print(" ]");
}
}