/Engine/Source/Editor/BlueprintGraph/Classes/EdGraphSchema_K2.h
Moves all connections from the old node to the new one. Returns true and destroys OldNode on success. Fails if it cannot find a mapping from an old pin.
bool ReplaceOldNodeWithNew ( [UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * OldNode, [UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * NewNode, const [TMap](API\Runtime\Core\Containers\TMap)< [FName](API\Runtime\Core\UObject\FName), [FName](API\Runtime\Core\UObject\FName) > & OldPinToNewPinMap ) const