edge between elements in an ordered set [message #1793472] |
Wed, 08 August 2018 19:30  |
Eclipse User |
|
|
|
Hi,
I have instances of type X, which are represented as a square node.
I have an ordered set of X.
I would like to create and edge between each consecutive instances of X in the ordered set.
Is there any way to do that ? I tried but without success...
thanks in advance
|
|
|
Re: edge between elements in an ordered set [message #1793564 is a reply to message #1793472] |
Fri, 10 August 2018 08:59   |
Eclipse User |
|
|
|
Hi,
you should be able to do that by using a Relation Based Edge and then using a query with "siblings" to retrieve the target element. Something like "aql:self.followingSiblings()->first()"
You might want to restrict to a specific feature using a query similar to this one (used in the case of the eClassifiers containment reference): "aql:self.followingSiblings()->select( s | s.eContainingFeature().name = 'eClassifiers')->first()"
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04782 seconds