Houdini 20.5 Nodes APEX nodes

graph::Sort

Sorts an APEX graph.

On this page
Since 20.0

Sorts an APEX graph’s nodes in a valid topological order such that if a node depends on the output of another node, then the node must come after the node it depends on.

Optionally, after sorting, layoutnodes can be used to reposition all the nodes in the graph using the sorted order.

The graph ports of this node are in-place ports, which means that the graph is updated without creating a copy.

Inputs

*graph: ApexGraphHandle Required

The graph to sort.

layoutnodes: Bool

If set to True, lays out the nodes after sorting.

Outputs

*graph: ApexGraphHandle

The updated graph with the nodes sorted.

See also

APEX nodes