I would like to create a node with a menu link programmatically. When the operation is complete, I would like the user to see the relationship between the node and the menu link under "Menu Settings" of the node.
I am aware of this post:
This shows the mechanics of creating a node and creating a menu link. It does not show how to build the relationship between the node and menu link so it is available in "Menu Settings" of the node for a user working with the Drupal GUI. How can I build this relationship?