|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Helper class for pruning a graph. More...
#include <src/dsp/graph_pruner.h>
Static Public Member Functions | |
| static bool | prune_graph_to_terminals (Graph &graph, const std::vector< std::reference_wrapper< GraphNode > > &terminal_nodes) |
| Prunes an existing graph to only include nodes that lead to specified terminals. | |
Helper class for pruning a graph.
Definition at line 15 of file graph_pruner.h.
|
static |
Prunes an existing graph to only include nodes that lead to specified terminals.
This is a utility method that can be called on any graph after it's built. It performs a backward traversal from the specified terminal nodes and removes all nodes that are not in the dependency chain.
| graph | The graph to prune (will be modified in-place) |
| terminal_nodes | The terminal nodes to preserve in pruned graph |