groimp-platform:xl-rules
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
groimp-platform:xl-rules [2025/01/10 12:46] – created gaetan | groimp-platform:xl-rules [2025/01/20 18:06] (current) – wkurth | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | GroIMP includes | + | GroIMP includes |
- | ==> | + | |
- | Rule in Lindenmayer-form. | + | | Rule symbol | What it does | |
- | (often only one object) is replaced by another graph. The relationships | + | | %%==>%% | Rule in Lindenmayer-form. |
- | are recovered. That means that if in a one-dimensional graph [ A B C D ] the | + | | |**Note:** This is a different type of rule than the instantiation rules (which also use %%==>%%)| |
- | node B is replaced by a node G, then G will be inserted into the graph with | + | | %%==>> |
- | the original | + | | %%::>%% | Update rule. This rule type does not change the structure of the graph. It is used to change the attributes of the objects (nodes) of the graph. c:C ::> {c[length] = c[length] * 20; } | |
- | indicates a successor edge in XL. | + | | %%==>%% | Instantiation rule. It is NOT used after a query, but after a class / module declaration. It adds geometric (or other sort of) information to all nodes of the declared type. | |
- | Axiom ==> A B C D; | + | |
- | B ==> G; | + | |
- | ==>> | + | |
- | Rule in SPO-form. | + | |
- | replaced by another graph. The relationships | + | |
- | programmer. That means that if in a one-dimensional graph [ A B C D ] | + | |
- | the node B is replaced by the node G, then the original | + | |
- | the graph will not be maintained. If the relationship | + | |
- | stated, then there will be no connection | + | |
- | This entails that the nodes are no more visible, which means they are | + | |
- | effectively deleted. Only the (unconnected) | + | |
- | Axiom ==> A B C D; | + | |
- | B ==>> G;In order to achieve the same result as in the example above (Lindenmayer- | + | |
- | form), it is necessary to explicitly list the relationships to A and C on the | + | |
- | right-hand side of the rule: | + | |
- | Axiom ==> A B C D; | + | |
- | a:A B c:C ==>> a G c; | + | |
- | This rule type is frequently used to delete subgraphs. | + | |
- | Axiom ==> A A [ B A A A ] A A [ C A A ] A | + | |
- | B ==>> ; | + | |
- | The resulting graph reads as follows | + | |
- | ::> | + | |
- | Update rule. This rule type does not change the structure of the graph. It is | + | |
- | used to change the attributes of the objects (nodes) of the graph. | + | |
- | c:C ::> {c[length] = c[length] * 20; } | + |
groimp-platform/xl-rules.1736509571.txt.gz · Last modified: 2025/01/10 12:46 by gaetan