/Engine/Source/Editor/KismetCompiler/Public/KismetCompiler.h
Prune isolated nodes given the specified graph
void PruneIsolatedNodes ( [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) * InGraph, bool bInIncludeNodesThatCouldBeExpandedToRootSet )