Interface GraphState<V,​E>

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

    public interface GraphState<V,​E>
    extends GraphStateAccessor<V,​E>

    Representation of a graph state

    Since:
    1.0
    Author:
    Andreas Pointner
    • Method Detail

      • addVertex

        void addVertex​(Vertex<V,​E> vertex)
        Adds a vertex to the graph state
        Parameters:
        vertex - the vertex to add
      • addEdge

        void addEdge​(Edge<V,​E> edge,
                     Vertex<V,​E> source,
                     Vertex<V,​E> target)
        Adds an edge between given source and target vertex
        Parameters:
        edge - the edge to add
        source - the source vertex
        target - the target vertex
        Throws:
        IllegalStateException - if the vertices were not added before
      • readonly

        default GraphStateAccessor<V,​E> readonly()
        Returns a readonly instance of the given graph state
        Returns:
        the current graph state as ready only representation