Package com.graphhopper.storage
Interface RoutingCHGraph
- All Known Implementing Classes:
QueryRoutingCHGraph
,RoutingCHGraphImpl
public interface RoutingCHGraph
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Traverses the base edges and shortcuts at a given node.getEdgeIteratorState
(int chEdge, int adjNode) int
getEdges()
int
getLevel
(int node) int
getNodes()
int
double
getTurnWeight
(int inEdge, int viaNode, int outEdge) boolean
boolean
-
Method Details
-
getNodes
int getNodes() -
getEdges
int getEdges() -
getShortcuts
int getShortcuts() -
createInEdgeExplorer
RoutingCHEdgeExplorer createInEdgeExplorer()Traverses the base edges and shortcuts at a given node. This will only include shortcuts coming from higher level nodes, but *all* base edges with finite weight. -
createOutEdgeExplorer
RoutingCHEdgeExplorer createOutEdgeExplorer() -
getEdgeIteratorState
-
getLevel
int getLevel(int node) -
getTurnWeight
double getTurnWeight(int inEdge, int viaNode, int outEdge) -
getBaseGraph
Graph getBaseGraph()- Returns:
- the graph this CH graph is based on, i.e. a the base
Graph
or aQueryGraph
on top of the base graph todo: maybe it would be better to remove this method and use a direct reference to the base graph when it is needed
-
hasTurnCosts
boolean hasTurnCosts() -
isEdgeBased
boolean isEdgeBased() -
getWeighting
Weighting getWeighting() -
close
void close()
-