/Engine/Source/Editor/UnrealEd/Public/GraphEditor.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)
virtual [UEdGraphNode](API\Runtime\Engine\EdGraph\UEdGraphNode) * GetSingleSelectedNode() const