Supporting feature-based parametric modeling by graph rewriting