I would like to write a rule that takes an arbitrary set of elements from the input model (for example all those have a particular name or feature) and create a simple target pattern.
In detail my problem is the following:
I would like to trasform a Network Lan in a Graph (in UML and Profiles). I have some simple source patterns and some simple target patterns. For example the source pattern host-link-router is translated in vertex-edge-vertex. The problem is that in the output model I have as many vertex that represent each router as many are the hosts connected to the router. So I thought that a second transformation could merge all the vertexes that correspond to same router in input model in a single vertex based on its name.