/Engine/Source/Runtime/Engine/Classes/EdGraph/EdGraphNode.h
Often we are only interested in a subset of our connections (e.g. only output pins, or only output pins except our exec pin) This function provides the ability to execute a provided function once for each node that is directly connected to this node, but first filters out which of this node's pins to consider:
void ForEachNodeDirectlyConnectedIf ( [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< bool(const [UEdGraphPin](API\Runtime\Engine\EdGraph\UEdGraphPin) *Pin)> Filter, [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< void([UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) *)> Func )