public int size() {
   return data.numColumns();
 }
 public void print() {
   for (int y = 0; y < data.numRows(); y++) {
     for (int x = 0; x < data.numColumns(); x++) System.out.print((int) (data.get(x, y)) + " ");
     System.out.print("\n");
   }
 }
 public AdjMatrix(Matrix adj) {
   this.data = adj;
   this.size = data.numColumns();
 }