Graph Rewriting for Agent Oriented Visual Modeling