Appearance
NodeClusteringOptions
Type: object
Properties
- options(optional)
- edgeGenerator(optional)
function(edges: EdgeList, clusterId: string, transformation: Transformation): EdgeDataAndAttributes
IfgroupEdges
istrue
, indicates the function used to generate the new edges from the sub-edges. Ignored ifclusterEdges
isfalse
. - enabled(optional)
boolean
[=true]
Indicates if the clustering must be enabled. - groupIdFunction(optional)
function(node: RawNode): string
Given a node, must return a string identifying a cluster. All nodes for which the function returns the same value will be clustered together. By default cluster all the nodes that were selected together. - groupSelfLoopEdges(optional)
boolean
[=false]
If true, edges for which the two extremities end up being clustered into the same node will be displayed as a self-loop edge, instead of not being displayed at all. - nodeGenerator(optional)
function(nodes: NodeList, clusterId: string, transformation: Transformation): NodeDataAndAttributes
Given a list of nodes that should be clustered together, must return the new node (meta-node) to be added. Ifattributes.x
andattributes.y
are not specified, the meta-node will be put at the center of the nodes. - selector(optional)
function(node: RawNode): boolean
Only nodes that match this criteria will be clustered with other nodes. By default, all the nodes will be assigned a cluster.
- edgeGenerator(optional)