get method

bool get(
  1. Body bi,
  2. Body bj
)

get

Implementation

bool get(Body bi, Body bj) {
  int i = bi.id;
  int j = bj.id;
  if (j > i) {
    final temp = j;
    j = i;
    i = temp;
  }
  return matrix.containsKey('$i-$j');
}