[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-user] Connect all possible A and B only once

Just some thoughts off the top of my head:

  • Why not add the connection when you create the instances of A and B?
  • Alternatively, you could probably add a NAC to your connection-creating rule to make sure the connection doesn't already exist.

Best regards,


On 23/05/2017 11:24, Juergen Freund wrote:
Dear Henshin Users and Developers,

I have problem with rules which I am not able to solve.

I want to create 50 instances of a class A and 50 instances of a class B.

After that is done I want to connect all of them in a separate rule. And I only want them to connect only once.
Which means in the end there should be 50 edges more in the graph.

So what I have done:

  • Rule to create class A and class B
  • Iterated Unit which calls the rule above 50 times.

Now is the part I don't know haw to do it right.

  • Rule which creates an edge between a preserved A and a preserved B --> only one single connection is added
  • Amalgamation Rule which creates an edge between a preserved* A and a preserved* B --> each a has 50 connections to each B

I added the project with my examples. It would be nice if you could me out.

Kind regards,


Dipl.-Ing. Jürgen Freund
Arbeitsgruppe Ähnlichkeitsmechanik

Telefon: +49 (0)711 685 69530
E-Mail:  freund@xxxxxxxxxxxxxxxxxxxx

Universität Stuttgart
Institut für Statik und Dynamik der Luft- und Raumfahrtkonstruktionen
Pfaffenwaldring 27 - Zimmer 01.002
70569 Stuttgart

henshin-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Dr. rer. nat. Steffen Zschaler AHEA
Senior Lecturer

King's College London
Department of Informatics

Email szschaler@xxxxxxx
Phone +44 (020) 7848 1513
WWW   http://www.steffen-zschaler.de/