- I
- I
Remarks
The nodes that induce this subgraph can be defined via property subgraphNodes. They will be arranged by the coreLayout.
Optionally, the edges that are included in the subgraph can explicitly be defined via property subgraphEdges. This feature is useful to exclude specific edges from being handled by the coreLayout. If no provider is registered, all edges are included.
In the same way it is also possible to include/exclude node labels or edge labels via properties subgraphNodeLabels and subgraphEdgeLabels.
Default Values of Properties
| Name | Default |
|---|---|
| coreLayout | null |
See Also
Developer's Guide
Members
Constructors
Creates a new SubgraphLayoutStage instance with an optional coreLayout.
Parameters
- coreLayout?: ILayoutAlgorithm
- The core layout algorithm.
Properties
Gets or sets the core ILayoutAlgorithm that is wrapped by this stage.
Property Value
Default Value
Defined in
LayoutStageBase.coreLayoutGets or sets a value that determines whether this stage should do anything but execute the coreLayout.
By default, when constructed, stages should be enabled. Users may disable a stage's functionality by setting this property to false.
Stages that can guarantee that the graph will not change can choose to not even execute the coreLayout when disabled.
Defined in
LayoutStageBase.enabledMethods
Implementation of the ILayoutAlgorithm interface and main entry point for the layout calculation.
Parameters
- graph: LayoutGraph
- The graph to apply the layout to.
Defined in
LayoutStageBase.applyLayoutDelegates the arrangement of the specified subgraph of the given graph to the coreLayout.
createLayoutData
(graph: LayoutGraph): SubgraphLayoutStageData<LayoutNode, LayoutEdge, LayoutNodeLabel, LayoutEdgeLabel>Returns an instance of LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel> that can be used to perform item-specific configurations for the SubgraphLayoutStage.
createLayoutData
(graph: LayoutGraph): SubgraphLayoutStageData<LayoutNode, LayoutEdge, LayoutNodeLabel, LayoutEdgeLabel>Parameters
- graph: LayoutGraph
- the graph that determines the generic type arguments of the created layout data
Return Value
- SubgraphLayoutStageData<LayoutNode, LayoutEdge, LayoutNodeLabel, LayoutEdgeLabel>
- an instance of layout data that can be used to perform item-specific configurations for the given SubgraphLayoutStage.
Returns an instance of LayoutData<TNode, TEdge, TNodeLabel, TEdgeLabel> that can be used to perform item-specific configurations for the SubgraphLayoutStage.
LayoutExecutor type is available at runtime.Parameters
- graph?: IGraph
- the graph that determines the generic type arguments of the created layout data
Return Value
- SubgraphLayoutStageData<INode, IEdge, ILabel, ILabel>
- an instance of layout data that can be used to perform item-specific configurations for the given SubgraphLayoutStage.