documentationfor yFiles for HTML 2.6

CycleAlgorithm

This class is responsible for finding cycles within a graph that have certain properties.

Inheritance Hierarchy
CycleAlgorithm

Remarks

Note: Methods of this class work with instances of Graph. To determine cycles in an IGraph instance use one of the following classes instead:

Definitions

  • An edge path with vertices v0, v1, v2, ... , vk (with k > 0 and (vi-1,vi), 0 < i <= k is edge of the given graph) is called simple if no vertex appears more than once.
  • An edge path forms a cycle if v0 = vk.
  • A cycle is called simple if no vertex appears more than once.
  • A graph that contains no cycles is called acyclic.

Example of an acyclic directed graph (edge directions are considered)

Example of a graph containing a cycle. Marked edges form a directed cycle.

Type Details

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

Static Methods