documentationfor yFiles for HTML 2.6

PathAlgorithm

This class provides methods for finding paths within a graph that have certain properties.

Inheritance Hierarchy
PathAlgorithm

Remarks

Note: Methods of this class work with instances of Graph. To work with various types of paths in an IGraph use one of the following classes instead:

Definitions

  • A path of length k from node u to node v in a graph is a sequence v0, v1, v2, ... , vk of nodes such that u = v0, v = vk and (vi-1, vi) in E, for each i = 1, 2, .. , k.
  • A path is called simple if no node appears twice.
  • A chain is a path of maximum length in which each internal node has degree 2.
  • The longest path problem is the problem of finding a simple path of maximum length in a given graph. The longest path problem is NP-hard for undirected graphs, but can be solved in linear time for directed acyclic graphs.

Type Details

yfiles module
algorithms
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.algorithms.Paths
The number of paths may be exponential to the graph size and,thus, the time and memory consumption of some of the provide methods can be very high.

Static Methods