public interface CHGraph
Modifier and Type | Method and Description |
---|---|
CHEdgeExplorer |
createEdgeExplorer() |
CHEdgeExplorer |
createEdgeExplorer(EdgeFilter filter) |
EdgeExplorer |
createOriginalEdgeExplorer() |
EdgeExplorer |
createOriginalEdgeExplorer(EdgeFilter filter) |
AllCHEdgesIterator |
getAllEdges() |
Graph |
getBaseGraph() |
CHConfig |
getCHConfig()
Returns the profile of this CH graph.
|
CHEdgeIteratorState |
getEdgeIteratorState(int edgeId,
int endNode) |
int |
getEdges() |
int |
getLevel(int nodeId) |
NodeOrderingProvider |
getNodeOrderingProvider() |
int |
getNodes() |
int |
getOriginalEdges() |
int |
getOtherNode(int edge,
int node) |
boolean |
isAdjacentToNode(int edge,
int node) |
boolean |
isReadyForContraction() |
boolean |
isShortcut(int edgeId) |
void |
setLevel(int nodeId,
int level)
This methods sets the level of the specified node.
|
int |
shortcut(int a,
int b,
int accessFlags,
double weight,
int skippedEdge1,
int skippedEdge2)
This method creates a shortcut between a to b which is nearly identical to creating an edge
except that it can be excluded or included for certain traversals or algorithms.
|
int |
shortcutEdgeBased(int a,
int b,
int accessFlags,
double weight,
int skippedEdge1,
int skippedEdge2,
int origFirst,
int origLast)
like shortcut(), but for edge-based CH
|
void setLevel(int nodeId, int level)
int getLevel(int nodeId)
CHConfig getCHConfig()
boolean isShortcut(int edgeId)
int shortcut(int a, int b, int accessFlags, double weight, int skippedEdge1, int skippedEdge2)
int shortcutEdgeBased(int a, int b, int accessFlags, double weight, int skippedEdge1, int skippedEdge2, int origFirst, int origLast)
origFirst
- The first original edge that is skipped by this shortcut. For example for the following shortcut
edge from x to y, which itself skips the shortcuts x->v and v->y the first original edge would
be x->u: x->u->v->w->yorigLast
- like origFirst, but the last orig edge, i.e w->y in above exampleCHEdgeIteratorState getEdgeIteratorState(int edgeId, int endNode)
CHEdgeExplorer createEdgeExplorer()
CHEdgeExplorer createEdgeExplorer(EdgeFilter filter)
EdgeExplorer createOriginalEdgeExplorer()
EdgeExplorer createOriginalEdgeExplorer(EdgeFilter filter)
AllCHEdgesIterator getAllEdges()
int getOriginalEdges()
NodeOrderingProvider getNodeOrderingProvider()
boolean isReadyForContraction()
Graph getBaseGraph()
int getNodes()
int getEdges()
int getOtherNode(int edge, int node)
boolean isAdjacentToNode(int edge, int node)
Copyright © 2012–2021. All rights reserved.