/Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraphSchema.h
Check whether connecting these pins would cause a loop
bool ConnectionCausesLoop ( const [UEdGraphPin](API\Runtime\Engine\EdGraph\UEdGraphPin) * InputPin, const [UEdGraphPin](API\Runtime\Engine\EdGraph\UEdGraphPin) * OutputPin ) const