documentationfor yFiles for HTML 2.6

BipartitionAlgorithm

This class provides methods to determine whether a graph is bipartite and to obtain the corresponding partitions.

Inheritance Hierarchy
BipartitionAlgorithm

Remarks

Note: Methods of this class work with instances of Graph. To determine a bipartition of an IGraph use Bipartition instead.

A bipartite graph is a graph whose nodes can be partitioned into two sets such that each edges connects two nodes of different sets. In other words, there are no edges connecting nodes that belong to the same partition.

The two sets/partitions are represented by two Object constants i.e., RED or BLUE.

Example of a bipartite graph. Circular and rectangular nodes represent the two partitions.

Type Details

yfiles module
algorithms
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.algorithms.Bipartitions

Constants

Static Methods