C

ChainsResult

Represents the chains found in the graph as computed by chains.
Inheritance Hierarchy

Remarks

The chains are available in Paths.

This class cannot be instantiated

Examples

Highlighting the edges along the chains
const result = new Chains({ directed: true }).run(graph)
result.chains.forEach((path) =>
  path.edges.forEach((edge) => graph.setStyle(edge, highlightEdgeStyle)),
)

Members

No filters for this type

Properties

All chains in the graph.
readonlyfinal