Package science.aist.gtf.graph
Interface GraphState<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- 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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addEdge(Edge<V,E> edge, Vertex<V,E> source, Vertex<V,E> target)
Adds an edge between given source and target vertexvoid
addVertex(Vertex<V,E> vertex)
Adds a vertex to the graph statedefault GraphStateAccessor<V,E>
readonly()
Returns a readonly instance of the given graph state-
Methods inherited from interface science.aist.gtf.graph.GraphStateAccessor
getEdges, getSource, getTarget, getVertices
-
-
-
-
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 addsource
- the source vertextarget
- 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
-
-