Interface BareBidiGraph<V,A>

Type Parameters:
V - the vertex data type
A - 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

public interface BareBidiGraph<V,A> extends BareDirectedGraph<V,A>
Adds methods to the interface defined in BareDirectedGraph that allow to follow arrows in backward direction.
  • Method Details

    • getPrev

      @NonNull V getPrev(@NonNull V vertex, int index)
      Returns the previous vertex associated with the specified vertex and incoming arrow index.
      Parameters:
      vertex - a vertex
      index - index of incoming arrow
      Returns:
      the previous vertex
      See Also:
    • getPrevArrow

      @Nullable A getPrevArrow(@NonNull V vertex, int index)
      Returns the arrow data associated with the specified vertex and the specified incoming arrow index.
      Parameters:
      vertex - a vertex
      index - index of incoming arrow
      Returns:
      the arrow
      See Also:
    • getPrevCount

      int getPrevCount(@NonNull V vertex)
      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