Skip to content
Discussion options

You must be logged in to vote

The simple way to achieve this in your case would be to enforce that each node has at most N predecessors, then write the intersection rules to merge N branches, N-1 branches ... 1 branch. With N=2 being a good choice, you only need a rule for 2 branches intersection and 1 branch intersection (trivial).

Another solution would be to use user-defined aggregates (#2282). The semantics checkers is currently not very strict about them and you might be able to call user-defined aggregates in a recursive relation.

Last solution, not available yet, would be recursive aggregates (#2263).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Laschoking
Comment options

Answer selected by Laschoking
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants