

Default value for elems is all the elements. Does nothing otherwise.Īpi.collapseEdgesBetweenNodes(nodes, options)Ĭollapse all edges between the set of given nodes.Įxpand all collapsed edges between the set of given nodes Useful to reach parent of a node removed because of collapse operation.Ĭollapse the given edges if all the given edges are between same two nodes and number of edges passed is at least 2. Get the parent of a node given its node id. Returned value includes edges and nodes, use selector to get edges or nodes.įorces the visual cue to be cleared. Get collapsed children of all collapsed nodes recursively. Returned value includes edges and nodes, use selector to get edges or nodes. Get collapsed children recursively including nested collapsed children. Get the children of the given collapsed node which are removed during collapse operationĪpi.getCollapsedChildrenRecursively(node) Sets the value of the option given by the name to the given value.Įxtend the current options with the given options. Resets the options to the given parameter. Get collapsible ones inside given nodes if nodes parameter is not specified consider all nodes Get expandable ones inside given nodes if nodes parameter is not specified consider all nodes Get whether node is expandable (or is collapsed) Following functions get options parameter to apply during a particular event unlike the function above.Ĭollapse given nodes, extend options with given param.Ĭollapse given nodes recursively, extend options with given param.Ĭollapse all nodes on graph (recursively), extend options with given param.Įxpand given nodes, extend options with given param.Įxpand given nodes recursively, extend options with given param.Įxpand all nodes on graph (recursively), extend options with given param.To get the extension instance after initialization. To initialize the extension with given options. DemoĬlick here (no undo and with custom cue image) or here (undoable) or here (compounds initially collapsed) for a demo. Siper, “ Efficient methods and readily customizable libraries for managing complexity of large networks”, PLoS ONE, 13(5): e0197238, 2018. Please cite the following paper when using this extension:

This extension provides an interface to expand/collapse nodes and edges for better management of complexity of Cytoscape.js compound graphs, distributed under The MIT License. Cytoscape.js-expand-collapse cytoscape-expand-collapse Description
