/Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraph.h
Get a list of nodes representing expressions that are not used in the Material
void GetUnusedExpressions ( [TArray](API\Runtime\Core\Containers\TArray)< class [UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * > & UnusedNodes ) const