Appearance
GeoClusteringOptions
Type: object
Properties
- edgeGenerator(optional)
function(edges: EdgeList, groupId: string, transformation: Transformation): EdgeDataAndAttributesIfgroupEdgesistrue, indicates the function used to generate the new edges from the sub-edges. Ignored ifgroupEdgesisfalse. - enabled(optional)
booleanIndicates if the grouping must be enabled. - groupEdges(optional)
booleanIndicates if parallel edges that end up having at least one meta-node extremity should be grouped together (to reduce cluttering). - groupSelfLoopEdges(optional)
booleanIf true, edges for which the two extremities end up being grouped into the same node will be displayed as a self-loop edge, instead of not being displayed at all. - nodeGenerator(optional)
function(nodes: NodeList, groupId: string, transformation: Transformation): NodeDataAndAttributesGiven a list of nodes that should be grouped together, must return the new node (meta-node) to be added. Ifattributes.xandattributes.yare not specified, the meta-node will be put at the center of the nodes. - onCreated(optional)
function(metaNode: Node, showContents: boolean, subNodes: NodeList, subEdges: EdgeList): Promise<any>This is a callback called after a new group is created. See {@link ./tutorials/grouping/index.html | here} for more details. - radius(optional)
numberThe radius in which a node gets grouped to annother one. - selector(optional)
function(node: Node): booleanOnly nodes that match this criteria will be grouped with other nodes. By default, all the nodes will be assigned a group. - separateEdgesByDirection(optional)
booleanBy default, edges that have opposite source and target are grouped together (resulting source and target not deterministic). If this option istrue, they will not be grouped together.