List

Prune Tree

Tree

Remove small branches from a data tree

Docs for v2.1.16, the latest version.

ID

list-tree-prune-tree

Group

Tree

Plugin

List

Keywords

prune
tree
remove branches
remove small branches
list

Prune Tree

Tree

3 inputs, 1 output

Ports

Inputs

3

What the node takes in, from wires or typed values.

Tree

Any

Data tree to prune

N0

Number

Default 0

Remove branches with fewer than N0 items

N1

Number

Default 0

Remove branches with more than N1 items (use zero to ignore the upper limit)

Outputs

1

What the node gives out, to wire into other nodes.

Tree

Any

Pruned tree

Creation method#

There are two options for creating a Prune Tree node.#

  • The first way to create a Prune 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.
    • prune, tree, remove branches, remove small branches, list
  • The second way is to select a Prune Tree node from the menu that opens from the top left.
    • Menu > List > Tree > Prune Tree

Steps#

  • Create a Prune Tree node.
  • Connect the data tree that needs to be pruned to the first port.
  • Configure the options:
    • Connect a numerical value to the "N0" port to remove branches with fewer than N0 items.
    • Connect a numerical value to the "N1" port to remove branches with more than N1 items (use zero to ignore the upper limit).
  • After creating a Prune Tree node, connect the data tree to the first port. Configure the options by connecting numerical values to the "N0" and "N1" ports. On the output port, you will get the pruned tree.

See also#

Weave, Graft Tree

History

First documented in v2.1.16

Oct 20, 2026

Versions before it were published before changes were recorded.