documentationfor yFiles for HTML 2.6

BiconnectedComponentClustering

Partitions the graph into clusters by analyzing its biconnected components.

Inheritance Hierarchy
BiconnectedComponentClustering

Remarks

A biconnected component is a subgraph which is connected and non-separable, i.e. after removing one single node the component is still connected.

Nodes will be clustered such that the nodes within each cluster are biconnected. Nodes that belong to multiple biconnected components (articulation nodes) will be assigned to exactly one of these clusters.

Other Clustering Algorithms

yFiles for HTML supports a number of other clustering algorithms:

Examples

Calculating the biconnected component clusters of a graph
// prepare the biconnected components clustering algorithm
const algorithm = new BiconnectedComponentClustering()
// run the algorithm
const result = algorithm.run(graph)

// highlight the nodes of the clusters with different styles
for (const node of graph.nodes) {
  const componentId = result.nodeClusterIds.get(node)
  graph.setStyle(node, clusterStyles.get(componentId))
}// prepare the biconnected components clustering algorithm
const algorithm = new BiconnectedComponentClustering()
// run the algorithm
const result = algorithm.run(graph)

// highlight the nodes of the clusters with different styles
for (const node of graph.nodes) {
  const componentId = result.nodeClusterIds.get(node)
  graph.setStyle(node, clusterStyles.get(componentId)!)
}

Type Details

yfiles module
view-layout-bridge
yfiles-umd modules
view-layout-bridge
Legacy UMD name
yfiles.analysis.BiconnectedComponentClustering

See Also

Isolated nodes, that is, nodes that have no edges or only self-loops, are assigned to their own cluster.

Constructors

Properties

Methods