documentationfor yFiles for HTML 2.6

LayoutGraphAdapter

Adapter class that can be used to obtain an LayoutGraph from an IGraph.

Inheritance Hierarchy
LayoutGraphAdapter

Remarks

Typically, this class is not used directly but through the LayoutExecutor or applyLayout and morphLayout

This class will use the provided selectionModel to register corresponding IDataProviders for the data provider keys AFFECTED_NODES_DP_KEY and AFFECTED_EDGES_DP_KEY to the layout graph. Moreover, it will automatically convert IMapper<K,V> instances registered with the IMapperRegistry of the adaptedGraph into corresponding IDataProvider instances of the layout graph.

In addition, this class supports IGraphs with edge to edge connections, i.e., edges that are adjacent to other edges. Since such edges are not allowed in an LayoutGraph, the property hideEdgesAtEdges specifies whether these edges shouldn't be converted into the layout graph at all or converted into a corresponding structure with dummy nodes.

Related Reading in the Developer's Guide

The chapter Applying an Automatic Layout describes how automatic layout and graph analysis algorithms from the yFiles Layout and yFiles Basic library components can be accessed from yFiles for HTML.

Type Details

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

See Also

Constructors

Properties

Methods

Constants