code: @SuppressWarnings("unchecked")
      @Override
      protected void _from(ObjectInput in) throws IOException,
              ClassNotFoundException {
          final int size = in.readInt();
          for (int i = 0; i < size; ++i) {
              final String label = readString(in);
              final int termIndex = in.readInt();
              addNode(termIndex, label);
          }
  
          remappedNodes.clear();
          remappedNodes = (Map<Integer, Integer>) in.readObject();
          equivalences.clear();
          equivalences = (Map<Integer, Integer>) in.readObject();
      }
docs: {@inheritDoc}