Package science.aist.gtf.graph
Interface GraphStateAccessor<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Edge<V,E>>
getEdges(Vertex<V,E> vertex)
returns the edges for a given vertexVertex<V,E>
getSource(Edge<V,E> edge)
Returns the source vertex for a given edgeVertex<V,E>
getTarget(Edge<V,E> edge)
Returns the target vertex for a given edgeCollection<Vertex<V,E>>
getVertices()
returns a snapshot collection of the vertices in the graph state
-
-
-
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
-
-