Graph grammars class