Class 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) static DirectedGraph<Vertex,Edge> from(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.reverse()Creates the reversedDirectedGraphwhich allows to navigate the topology backwards by flipping all edges.static DirectedGraph<Vertex,Edge> reverse(RoutingGraphLayer routingGraphLayer) static DirectedGraph<Vertex,Edge> reversedFrom(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew Graphs(optimizedMap).reverse().
-
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.
-
from
@Deprecated public static DirectedGraph<Vertex,Edge> from(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew Graphs(optimizedMap).forward().Creates aDirectedGraphthat lazily loads data from the `routinggraph` layer of the Optimized Map for Location Library. -
reversedFrom
@Deprecated public static DirectedGraph<Vertex,Edge> reversedFrom(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew Graphs(optimizedMap).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
-
new Graphs(optimizedMap).forward().