cytoscape.js

Remove/hide compound node without removing/hiding descendants


In cytoscape.js, compoundNode.remove() removes the compound node and its descendants from the graph.

Is there a way to only remove the compound node and keep the descendants?


Solution

  • Use eles.move() : http://js.cytoscape.org/#collection/graph-manipulation/eles.move

    Then you can remove (what used to be) the parent node.