Package science.aist.gtf.graph
Interface Vertex<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- the type of the decorated edge value
- All Superinterfaces:
MetaTagCollection
- All Known Subinterfaces:
VertexView<V,E>
- All Known Implementing Classes:
AbstractVertex
,VertexImpl
,VertexViewImpl
public interface Vertex<V,E> extends MetaTagCollection
Interface to represent a vertex
- Since:
- 1.0
- Author:
- Andreas Schuler, Andreas Pointner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Vertex<V,E>>
getAdjacentVertices()
vertex has a collection of edges, thus pointing to several other verticesCollection<Edge<V,E>>
getEdges()
V
getElement()
Collection<Edge<V,E>>
getIncomingEdges()
Returns all edges that are incoming into this vertex.Collection<Edge<V,E>>
getOutgoingEdges()
Returns all edges which are outgoing from this vertex.-
Methods inherited from interface science.aist.gtf.graph.MetaTagCollection
addMetaTag, getMetaTags, getMetaTagValue, getMetaTagValue, removeMetaTag, removeMetaTag, tryGetMetaTagValue, tryGetMetaTagValue
-
-
-
-
Method Detail
-
getAdjacentVertices
Collection<Vertex<V,E>> getAdjacentVertices()
vertex has a collection of edges, thus pointing to several other vertices- Returns:
- a collection of vertex
-
getEdges
Collection<Edge<V,E>> getEdges()
- Returns:
- returns a collection of edges
-
getIncomingEdges
Collection<Edge<V,E>> getIncomingEdges()
Returns all edges that are incoming into this vertex.
If this vertex is seen as v, then all edges e are returned that match x-(e)->v
- Returns:
- returns a collection of edges
-
getOutgoingEdges
Collection<Edge<V,E>> getOutgoingEdges()
Returns all edges which are outgoing from this vertex.
If this vertex is seen as v, then all edges e are returned that match v-(e)->x
- Returns:
- returns a collection of edges
-
getElement
V getElement()
- Returns:
- returns the decorated element
-
-