Class Graphs
java.lang.Object
com.here.platform.location.integration.optimizedmap.graph.javadsl.Graphs
-
Constructor Summary
ConstructorsConstructorDescriptionGraphs(OptimizedMapLayers optimizedMap) Creates aGraphsfrom an Optimized Map for Location Library. -
Method Summary
Modifier and TypeMethodDescriptionforward()Creates aDirectedGraphthat lazily loads data from the `routinggraph` layer of the Optimized Map for Location Library usingOptimizedMapLayers.routingGraph().static DirectedGraph<Vertex,Edge> forward(RoutingGraphLayer routingGraphLayer) reverse()Creates the reversedDirectedGraphwhich allows to navigate the topology backwards by flipping all edges.static DirectedGraph<Vertex,Edge> reverse(RoutingGraphLayer routingGraphLayer)
-
Constructor Details
-
Graphs
Creates aGraphsfrom an Optimized Map for Location Library.
-
-
Method Details
-
forward
Creates aDirectedGraphthat lazily loads data from the `routinggraph` layer of the Optimized Map for Location Library usingOptimizedMapLayers.routingGraph(). -
reverse
Creates the reversedDirectedGraphwhich allows to navigate the topology backwards by flipping all edges.A reversed graph is a
DirectedGraphin which theDirectedGraph.getOutEdgeIterator(V)method applied to aVertex`A`, returns the edges that have `A` as a target in the forward graph.The returned vertices and edges are the same as the one returned from the forward graph and can be used directly to query vertex and edge
PropertyMaps.The reversed graph is not offering the same performance as the forward graph.
-
forward
-
reverse
-