Graph (Azure SDK for Java Reference Documentation)
Jessica Wood
Published Feb 16, 2026
- java.lang.Object
- com.azure.resourcemanager.resources.fluentcore.dag.Graph<DataT,NodeT>
- Type Parameters:
DataT- the type of the data stored in the graph's nodesNodeT- the type of the nodes in the graph
- Direct Known Subclasses:
- DAGraph
public class Graph<DataT,NodeT extends Node<DataT,NodeT>>extends Object
Type representing a directed graph data structure.Each node in a graph is represented by
Node
Nested Class Summary
Nested Classes Modifier and Type Class and Description protected static classGraph.EdgeTypeThe edge types in a graph.
protected static interfaceGraph.Visitor<U>Represents a visitor to be implemented by the consumer who want to visit the graph's nodes in DFS order by calling visit method.
Field Summary
Constructor Summary
Constructors Constructor and Description Graph()Creates a directed graph.
Field Detail
Constructor Detail
Method Detail
addNode
public void addNode(NodeT node)
Adds a node to this graph.
- Parameters:
node- the node
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.