public class RoutingCHGraphImpl extends Object implements RoutingCHGraph
Constructor and Description |
---|
RoutingCHGraphImpl(Graph graph,
Weighting weighting) |
Modifier and Type | Method and Description |
---|---|
RoutingCHEdgeExplorer |
createAllEdgeExplorer() |
RoutingCHEdgeExplorer |
createInEdgeExplorer() |
RoutingCHEdgeExplorer |
createOriginalInEdgeExplorer() |
RoutingCHEdgeExplorer |
createOriginalOutEdgeExplorer() |
RoutingCHEdgeExplorer |
createOutEdgeExplorer() |
Graph |
getBaseGraph() |
RoutingCHEdgeIteratorState |
getEdgeIteratorState(int edgeId,
int adjNode) |
int |
getEdges() |
Graph |
getGraph() |
int |
getLevel(int node) |
int |
getNodes() |
int |
getOriginalEdges() |
int |
getOtherNode(int edge,
int node) |
double |
getTurnWeight(int edgeFrom,
int nodeVia,
int edgeTo) |
Weighting |
getWeighting() |
boolean |
hasTurnCosts() |
boolean |
isAdjacentToNode(int edge,
int node) |
public int getNodes()
getNodes
in interface RoutingCHGraph
public int getEdges()
getEdges
in interface RoutingCHGraph
public int getOriginalEdges()
getOriginalEdges
in interface RoutingCHGraph
public int getOtherNode(int edge, int node)
getOtherNode
in interface RoutingCHGraph
public boolean isAdjacentToNode(int edge, int node)
isAdjacentToNode
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createInEdgeExplorer()
createInEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createOutEdgeExplorer()
createOutEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createAllEdgeExplorer()
createAllEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createOriginalInEdgeExplorer()
createOriginalInEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeExplorer createOriginalOutEdgeExplorer()
createOriginalOutEdgeExplorer
in interface RoutingCHGraph
public RoutingCHEdgeIteratorState getEdgeIteratorState(int edgeId, int adjNode)
getEdgeIteratorState
in interface RoutingCHGraph
public int getLevel(int node)
getLevel
in interface RoutingCHGraph
public Graph getGraph()
getGraph
in interface RoutingCHGraph
CHGraph
or a QueryGraph
wrapping a CHGraph
public Graph getBaseGraph()
getBaseGraph
in interface RoutingCHGraph
public Weighting getWeighting()
getWeighting
in interface RoutingCHGraph
public boolean hasTurnCosts()
hasTurnCosts
in interface RoutingCHGraph
public double getTurnWeight(int edgeFrom, int nodeVia, int edgeTo)
getTurnWeight
in interface RoutingCHGraph
Copyright © 2012–2020. All rights reserved.