4

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?

jww
  • 97,681
  • 90
  • 411
  • 885
user3408654
  • 301
  • 1
  • 13

1 Answers1

5

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

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

maxkfranz
  • 11,896
  • 1
  • 27
  • 36