tutorials:xl-queries-and-operators
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:xl-queries-and-operators [2024/12/11 12:44] – [Test model] MH | tutorials:xl-queries-and-operators [2025/06/02 07:36] (current) – added transitive closure examples ksmolen | ||
---|---|---|---|
Line 60: | Line 60: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | {{ : | ||
The underlying 2d graph of the generated structure given below: | The underlying 2d graph of the generated structure given below: | ||
- | {{ : | + | Beginning from // |
- | + | ||
Line 145: | Line 145: | ||
Aggregate operations are used to collect multiple values when traversing the graph structure and return a single value. | Aggregate operations are used to collect multiple values when traversing the graph structure and return a single value. | ||
- | Standard [[groimp-platform: | + | Standard [[:groimp-platform: |
* Count all leaves: | * Count all leaves: | ||
Line 202: | Line 202: | ||
</ | </ | ||
+ | ==== Transitive closure ==== | ||
+ | |||
+ | Transitive closure is a concept used to derive relations between successive nodes connected by several edges of the same type. For example, we want to find all descendants of some given node that are of type Internode. | ||
+ | |||
+ | The quantifier '' | ||
+ | |||
+ | * Find all internodes connected to the bud: | ||
+ | |||
+ | <code java> | ||
+ | (* Bud (<--)+ Internode *) | ||
+ | </ | ||
+ | |||
+ | Special syntax is used after the quantifier if we are interested only in finding minimal elements '': | ||
+ | |||
+ | * Find the first internode connected to the bud: | ||
+ | |||
+ | <code java> | ||
+ | (* Bud (<--)+ : | ||
+ | </ |
tutorials/xl-queries-and-operators.1733917476.txt.gz · Last modified: 2024/12/11 12:44 by MH