[gme-users] OCL help

Zoltan Molnar zolmol at isis.vanderbilt.edu
Thu Jul 6 13:24:26 CDT 2006


Try to define and attach this constraint to the node element:

self.connectedFCOs("src","Edge1")->size()  = 1

or

self.connectedFCOs("src","Edge1").union(self.connectedFCOs("dst",
"Edge1")).size() = 1


Br, Zoli


> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu 
> [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Eddie
> Sent: Wednesday, July 05, 2006 6:40 PM
> To: gme-users
> Subject: [gme-users] OCL help
> 
> 
> Hi,
> 
> could anybody help me with a constraint formulation:
> 
> I have some graph nodes and I want to forbid that any of two 
> nodes are connected more than once with an edge of a certain 
> type. So the constraint will trigger if there is more than 
> one edge (of a certain 
> type)
> with the same source and the same destination.
> 
> Thank you in advance! 
> 
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> 


More information about the gme-users mailing list