Hide Node itself but not the links to and from it in diagram

I am iterating through all the nodes in the diagram, finding the desired node to be made invisible but the problem lies in the fact that the node itself has a link to a child and a link from the Root. I wish to only make the node of the diagram invisible but not the links to and from it. Is that possible?

myDiagram.nodes.each(n => {
    if(n.data.text === desiredNodeText) {
            // make the node invisble
            n.visible = false;

the highlighted node Manufacturer should be invisible and the links connected to child (Legislation) and the link from a Root should remain.

You can set or bind the GraphObject.opacity to zero.