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
public static interface DiGraph.DiGraphNode<N,E> extends GraphNode<N,E>
A generic directed graph node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<? extends DiGraph.DiGraphEdge<N,E>>getInEdges()java.util.List<? extends DiGraph.DiGraphEdge<N,E>>getOutEdges()intgetPriority()Returns a nonnegative integer priority which can be used to order nodes.booleanhasPriority()Returns 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 Detail
-
getOutEdges
java.util.List<? extends DiGraph.DiGraphEdge<N,E>> getOutEdges()
-
getInEdges
java.util.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.
-
-