acyclic_group_relationship

EXPRESS specification:

FUNCTION acyclic_group_relationship
(* Modified for LPM/6 *)(relation : group_relationship; relatives : SET [1:?] OF group; specific_relation : STRING) : BOOLEAN; LOCAL x : SET OF group_relationship; END_LOCAL; IF relation.relating_group IN relatives THEN RETURN (FALSE); END_IF; x := QUERY (grp <* bag_to_set (USEDIN (relation.relating_group, 'STRUCTURAL_FRAME_SCHEMA.' + 'GROUP_RELATIONSHIP.' + 'RELATED_GROUP')) | specific_relation IN TYPEOF (grp)); REPEAT i := 1 TO HIINDEX(x); IF NOT acyclic_group_relationship (x[i], relatives + relation.relating_group, specific_relation) THEN RETURN(FALSE); END_IF; END_REPEAT; RETURN(TRUE);
END_FUNCTION;