Skip to content

@graphty/cytoscape-extensions / index / Partition

Type Alias: Partition<T> ​

Partition<T> = NodeCollection[] & T & object

Defined in: cytoscape-extensions/src/algorithms.ts:189

A partition: an array of node collections, one per cluster, plus each node's cluster number.

Type Declaration ​

cluster() ​

cluster(node): number | undefined

The cluster number (its position in the array) of a node; undefined for one outside the collection.

Parameters ​

node ​

ElementRef

Returns ​

number | undefined

Type Parameters ​

T ​

T = object