link error: LinkGraphNodesFromMaterial unresolved external symbol

I noticed that MaterialGraph has a tag “MinimalAPI”, so that the LinkGraphNodesFromMaterial can not be called.

How can I do the same thing without calling this function?

I was just following:
https://github.com/EpicGames/UnrealEngine/blob/master/Engine/Source/Editor/MaterialEditor/Private/Tests/MaterialEditorTests.cpp#L48