latest

Tree

Flatten Tree

Flatten a data tree by removing all branching information

ID

list-tree-flatten-tree

Name

Flatten Tree

Group

Tree

Package

List

Keywords

flatten
tree
remove branch

List

Sequence

Set

Tree

Creation method

There are two options for creating a Flatten Tree node:

  • The first way to create a Flatten Tree node is by using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need or words associated with this node.
    • flatten, tree, remove branch
  • The second way is to select a Flatten Tree node from the menu that opens from the top left.
    • Menu > List > Tree > Flatten Tree

Steps

  • Create a Flatten Tree node.
  • Connect the data tree that needs to be flattened to the "Tree" port.
  • Specify the path of the flattened tree by connecting a numerical value to the "Path" port.
  • After creating a Flatten Tree node, connect the data tree to the "Tree" port. Specify the path of the flattened tree by connecting a numerical value to the "Path" port. On the output port, you will get the flattened data tree.

See also

  • Clean Tree

Inputs

NameTypeDescriptionDefault Value
tree
Any
Data tree to flatten
path
Path
Path of flattened tree()=>A([0])

Outputs

NameTypeDescription
tree
Any
Flatten data tree