Interface DiGraph.DiGraphNode<N,E>
- Type Parameters:
N- Value type that the graph node stores.E- Value type that the graph edge stores.
- All Superinterfaces:
Annotatable,GraphNode<N,E>
- All Known Implementing Classes:
LinkedDirectedGraph.LinkedDiGraphNode
A generic directed graph node.
-
Method Summary
Modifier and TypeMethodDescriptionList<? extends DiGraph.DiGraphEdge<N, E>> List<? extends DiGraph.DiGraphEdge<N, E>> intReturns a nonnegative integer priority which can be used to order nodes.booleanReturns whether a priority has been set.voidsetPriority(int priority) Sets a node priority, must be non-negative.Methods inherited from interface com.google.javascript.jscomp.graph.Annotatable
getAnnotation, setAnnotation
-
Method Details
-
getOutEdges
List<? extends DiGraph.DiGraphEdge<N,E>> getOutEdges() -
getInEdges
List<? extends DiGraph.DiGraphEdge<N,E>> getInEdges() -
hasPriority
boolean hasPriority()Returns whether a priority has been set. -
getPriority
int getPriority()Returns a nonnegative integer priority which can be used to order nodes.Throws if a priority has not been set.
-
setPriority
void setPriority(int priority) Sets a node priority, must be non-negative.
-