示例#1
0
 public int size() {
   return data.numColumns();
 }
示例#2
0
 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");
   }
 }
示例#3
0
 public AdjMatrix(Matrix adj) {
   this.data = adj;
   this.size = data.numColumns();
 }