documentationfor yFiles for HTML 2.6

SubgraphLayout

A SubgraphLayout is a ILayoutStage that filters out all graph elements that are not part of a specific subgraph.

Inheritance Hierarchy
LayoutStageBase
SubgraphLayout
Implemented Interfaces

Remarks

The nodes that induce this subgraph are marked using a IDataProvider registered with a specific subgraph nodes key. They will be arranged by the core layout algorithm.

Optionally, the edges that are included in the subgraph can explicitly be marked as well by registering a IDataProvider with the subgraph edges key. This feature is useful to exclude specific edges from being handled by the core layout. If no provider is registered, all edges are included.

Default Values of Properties

affectedEdgesDpKeySUBGRAPH_EDGES_DP_KEY
affectedNodesDpKeyAFFECTED_NODES_DP_KEY
coreLayoutnull

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.SubgraphLayout

See Also

All excluded nodes, their incident edges and explicitly excluded edges keep their locations. Hence, arranging only a subgraph may lead to overlaps.

Constructors

Properties

Methods

Constants