collapseSubGraph method

void collapseSubGraph()

Hide each of the member nodes and links of this group, and recursively collapse any member groups. This changes the value of Part#isVisible of the whole subgraph and the parts owned by those member nodes and links. However, this group's visibility is unchanged.

This sets #isSubGraphExpanded to false on this group and on all of the nested Groups. For those nested Groups that were expanded, #wasSubGraphExpanded is set to true.

This method does not perform a transaction or start any animation.

To collapse trees made of Nodes and Links, use Node#collapseTree.

Implementation

void collapseSubGraph() {
  _i4.callMethod(
    this,
    'collapseSubGraph',
    [],
  );
}