Class TiledReverseGraph
java.lang.Object
com.here.platform.location.inmemory.graph.TiledReverseGraph
- All Implemented Interfaces:
com.here.platform.location.core.graph.DirectedGraph<Vertex,
,Edge> com.here.platform.location.core.graph.IncidenceGraph<Vertex,
Edge>
public class TiledReverseGraph
extends Object
implements com.here.platform.location.core.graph.DirectedGraph<Vertex,Edge>
A reverse Graph consisting of multiple
GraphTile
s.
The graph vertices and edges are compatible with the ones returned from the forward graph, so the two graphs can be used together in the same algorithm (e.g. bidirectional search).
param: graphTileById Used to retrieve the forward graph data tiles by their ID, if they exist param: reverseGraphTileById Used to retrieve the backward graph data tiles by their ID, if they exist
-
Constructor Summary
ConstructorsConstructorDescriptionTiledReverseGraph
(scala.Function1<TileId, scala.Option<GraphTile>> graphTileById, scala.Function1<TileId, scala.Option<ReverseGraphTile>> reverseGraphTileById) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsEdge
(Edge edge) boolean
containsVertex
(Vertex vertex) scala.collection.Iterator<Edge>
edgeIterator
(Vertex sourceVertex, Vertex targetVertex) int
scala.collection.Iterator<Edge>
outEdgeIterator
(Vertex vertex)
-
Constructor Details
-
TiledReverseGraph
public TiledReverseGraph(scala.Function1<TileId, scala.Option<GraphTile>> graphTileById, scala.Function1<TileId, scala.Option<ReverseGraphTile>> reverseGraphTileById)
-
-
Method Details
-
containsEdge
-
containsVertex
-
edgeIterator
-
outDegree
-
outEdgeIterator
-
source
-
target
-