SNode parentNode = // get parent node from meta-model SNode childNode = // get child node from meta-model // create meta adapter for parent node SNodeAdapter parentAdapter = MetaAdapterFactory.getAdapter(SNodeAdapter.class, parentNode); // get reference link for child node ReferenceLink link = MetaAdapterFactory.getReferenceLink(parentAdapter, "childLinkName"); // set the link between the parent and child nodes link.addTarget(childNode);In this example, we obtain a reference link with the name "childLinkName" from the parent node's meta-adapter using the `getReferenceLink` method. We then add the child node as a target for the link. The `MetaAdapterFactory` belongs to the `jetbrains.mps.smodel.adapter.structure` package library.