Changing Parent for Graph Links Model

Is there a way to change the parent of a node with GraphLinksModel?

We have searched and found that there is one method setParentKeyForNodeData for TreeModel but there is nothing similar in GraphLinksModel?

In a GraphLinksModel, a node could have multiple parents, so you’ll need to identify the link coming in that you’d like to change. You can then use setFromKeyForLinkData to change the from node. You may also need to adjust the from port, if you’re using them.