documentationfor yFiles for HTML 3.0.0.3

StructureGraphAdapter

Converts an IGraph instance into a structure-only LayoutGraph instance that is created by createStructureGraph.

Inheritance Hierarchy
StructureGraphAdapter

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 shortestPath, findCycle, and graphCentrality. However, for most of the algorithms the analysis algorithms are preferred, as they can be used without any conversion directly on IGraph instances.

For executing a layout algorithm, LayoutExecutor would be preferred or one of the applyLayout and applyLayoutAnimated 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 ArgumentError is thrown.

Type Details

yFiles module
view-layout-bridge

See Also

Constructors

Properties

Methods