bool prepare(IHypergraph<A> const& h, IMutableHypergraph<A>& m) const { Prepare const* p = impl(); if (clearOut && !isInplace(h, m)) { if (samePropertiesOut) m.clear(h.properties()); else m.clear(); } StateIdMapping* map = p->mapping(h, m); if (map) { this->stateRemap.resetNew(map); p->preparePost(h, m); return true; } else return false; }