documentationfor yFiles for HTML 2.6

YGraphAdapter

Converts an IGraph instance into a Graph instance.

Inheritance Hierarchy
YGraphAdapter

Remarks

This class creates a structural copy of a given IGraph and provides methods to convert items from one graph instance to their corresponding item in the other graph instance.

The main use case of this class is executing one of the analysis algorithms on an IGraph, for example ShortestPathAlgorithm, CycleAlgorithm, and CentralityAlgorithm. However, for most use cases the algorithms that work directly on the IGraph instance are preferred.

For executing a layout algorithm, LayoutExecutor would be preferred or one of the applyLayout and morphLayout methods. LayoutGraphAdapter is the exact equivalent of this type for layout algorithms if low-level control over the conversion to LayoutGraph is needed.

Edge to edge connections are not supported. If the original IGraph contains such connections, an InvalidGraphStructureError is thrown.

Type Details

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

See Also

Constructors

Properties

Methods