Class Graph<DataT, NodeT extends Node<DataT,NodeT>>
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumThe edge types in a graph.protected static interfaceRepresents 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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
nodeTable
-
-
Constructor Details
-
Graph
public Graph()Creates a directed graph.
-
-
Method Details
-
getNodes
-
addNode
-
visit
Perform DFS visit in this graph.The directed graph will be traversed in DFS order and the visitor will be notified as search explores each node and edge.
- Parameters:
visitor- the graph visitor
-
findPath
-