Skip to content

OpenBIMRL | Tree functions

Class path: tree.flatten

Flatten

flatten1.png

Description

Linearize a tree structure and retrieve values and their tree paths (Path/Trace) as a key.

Input

Input Name Typ Description
0 tree Tree Input tree

Output

Output Name Typ Description
0 keySet List All paths of the tree structure.
1 values List All values of the tree structure.

Use/Example

flatten2.png

Node representation with example values

Sample file