/Engine/Source/Editor/Kismet/Public/BlueprintEditor.h
Returns the currently selected node if there is a single node selected (if there are multiple nodes selected or none selected, it will return nullptr)
[UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * GetSingleSelectedNode() const