Package org.cdk8s
Class DependencyGraph
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.DependencyGraph
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)", date="2025-03-14T12:14:30.765Z") @Stability(Stable) public class DependencyGraph extends software.amazon.jsii.JsiiObject
Represents the dependency graph for a given Node.This graph includes the dependency relationships between all nodes in the node (construct) sub-tree who's root is this Node.
Note that this means that lonely nodes (no dependencies and no dependants) are also included in this graph as childless children of the root node of the graph.
The graph does not include cross-scope dependencies. That is, if a child on the current scope depends on a node from a different scope, that relationship is not represented in this graph.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DependencyGraph(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
DependencyGraph(software.amazon.jsii.JsiiObjectRef objRef)
DependencyGraph(software.constructs.Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencyVertex
getRoot()
Returns the root of the graph.List<software.constructs.IConstruct>
topology()
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
DependencyGraph
protected DependencyGraph(software.amazon.jsii.JsiiObjectRef objRef)
-
DependencyGraph
protected DependencyGraph(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
DependencyGraph
@Stability(Stable) public DependencyGraph(@NotNull software.constructs.Node node)
- Parameters:
node
- This parameter is required.
-
-
Method Detail
-
topology
@Stability(Stable) @NotNull public List<software.constructs.IConstruct> topology()
- See Also:
- Vertex.topology ()
-
getRoot
@Stability(Stable) @NotNull public DependencyVertex getRoot()
Returns the root of the graph.Note that this vertex will always have
null
as its.value
since it is an artifical root that binds all the connected spaces of the graph.
-
-