Package com.graphhopper.storage
Interface RoutingCHGraph
- All Known Implementing Classes:
QueryRoutingCHGraph,RoutingCHGraphImpl
public interface RoutingCHGraph
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Traverses the base edges and shortcuts at a given node.getEdgeIteratorState(int chEdge, int adjNode) intgetEdges()intgetLevel(int node) intgetNodes()intdoublegetTurnWeight(int inEdge, int viaNode, int outEdge) booleanboolean
-
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()- See Also:
-
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
Graphor aQueryGraphon 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()
-