- Type Parameters:
V- the vertex data typeA- the arrow data type
- All Superinterfaces:
BareDirectedGraph<V,,A> BareDirectedVertexGraph<V>
- All Known Subinterfaces:
BidiGraph<V,,A> MutableBidiGraph<V,A>
- All Known Implementing Classes:
ImmutableAttributed32BitIndexedBidiGraph,IndexedBidiGraphBidiGraphFacade,SimpleMutableBidiGraph
Adds methods to the interface defined in
BareDirectedGraph
that allow to follow arrows in backward direction.-
Method Summary
Modifier and TypeMethodDescriptionReturns the previous vertex associated with the specified vertex and incoming arrow index.getPrevArrow(@NonNull V vertex, int index) Returns the arrow data associated with the specified vertex and the specified incoming arrow index.intgetPrevCount(@NonNull V vertex) Returns the number of previous vertices at the specified vertex.Methods inherited from interface org.jhotdraw8.graph.BareDirectedGraph
getNextArrowMethods inherited from interface org.jhotdraw8.graph.BareDirectedVertexGraph
getNext, getNextCount, getVertices
-
Method Details
-
getPrev
Returns the previous vertex associated with the specified vertex and incoming arrow index.- Parameters:
vertex- a vertexindex- index of incoming arrow- Returns:
- the previous vertex
- See Also:
-
getPrevArrow
Returns the arrow data associated with the specified vertex and the specified incoming arrow index.- Parameters:
vertex- a vertexindex- index of incoming arrow- Returns:
- the arrow
- See Also:
-
getPrevCount
Returns the number of previous vertices at the specified vertex.This number is the same as the number of incoming arrows at the specified vertex.
- Parameters:
vertex- a vertex- Returns:
- the number of previous vertices
-