/Engine/Plugins/Animation/DeformerGraph/Source/OptimusCore/Public/OptimusNodeGraph.h
Take a set of nodes and collapse them into a single function, replacing the given nodes with the new function node and returning it. A new function definition is made available as a new Function graph in the package.
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category=OptimusNodeGraph) [UOptimusNode](API\Plugins\OptimusCore\UOptimusNode) * CollapseNodesToFunction ( const [TArray](API\Runtime\Core\Containers\TArray)< [UOptimusNode](API\Plugins\OptimusCore\UOptimusNode) * > & InNodes )