architxt.simplification.tree_rewriting.operations.collections#
Classes
|
Identifies and groups nodes into collections. |
- class architxt.simplification.tree_rewriting.operations.collections.FindCollectionsOperation(*args, naming_only=False, **kwargs)[source]#
Bases:
Operation
Identifies and groups nodes into collections.
The operation can operate in two modes: 1. Naming-only mode: Simply assigns labels to valid collections without altering the tree’s structure. 2. Structural modification mode: Groups nodes into collection sets, updates their labels, and restructures the tree by creating collection nodes.