Interface GraphStateAccessor<V,​E>

  • Type Parameters:
    V - the type of the decorated vertex value
    E - the type of the decorated edge value
    All Known Subinterfaces:
    GraphState<V,​E>
    All Known Implementing Classes:
    GraphStateImpl

    public interface GraphStateAccessor<V,​E>

    Allows reading access to a given graph state

    Since:
    1.0
    Author:
    Andreas Pointner
    • Method Detail

      • getVertices

        Collection<Vertex<V,​E>> getVertices()
        returns a snapshot collection of the vertices in the graph state
        Returns:
        a snapshot collection of the vertices in the graph state
      • getEdges

        Set<Edge<V,​E>> getEdges​(Vertex<V,​E> vertex)
        returns the edges for a given vertex
        Parameters:
        vertex - the vertex for which the edges should be retrieved
        Returns:
        the set of edges for the given vertex
      • getSource

        Vertex<V,​E> getSource​(Edge<V,​E> edge)
        Returns the source vertex for a given edge
        Parameters:
        edge - the edge for which the source vertex should be returned
        Returns:
        the source vertex of the given
      • getTarget

        Vertex<V,​E> getTarget​(Edge<V,​E> edge)
        Returns the target vertex for a given edge
        Parameters:
        edge - the edge for which the target vertex should be returned
        Returns:
        the target vertex of the given