code: function areEquivalent(s1, s2, table, alphabet) {
    for (const symbol of alphabet) {
      if (!goToSameSet(s1, s2, table, symbol)) {
        return false;
      }
    }
    return true;
  }
docs: Checks whether two states are N-equivalent, i.e. whether they go
  to the same set on a symbol.