public class EdgeBasedShortcutInserter extends Object implements EdgeBasedNodeContractor.ShortcutHandler
| Constructor and Description |
|---|
EdgeBasedShortcutInserter(CHGraph chGraph) |
| Modifier and Type | Method and Description |
|---|---|
void |
addShortcut(int prepareEdge,
int from,
int to,
int origEdgeFirst,
int origEdgeLast,
int skipped1,
int skipped2,
double weight,
boolean reverse)
This method is called for every shortcut found by the contractor
|
int |
finishContractingNode()
Use this hook for any kind of post-processing after the node is contracted
|
void |
finishContraction()
This method is called at the very end of the graph contraction (after the last node was contracted)
|
void |
startContractingNode()
Use this hook for any kind of initialization to be done before a node is contracted
|
public EdgeBasedShortcutInserter(CHGraph chGraph)
public void startContractingNode()
EdgeBasedNodeContractor.ShortcutHandlerstartContractingNode in interface EdgeBasedNodeContractor.ShortcutHandlerpublic void addShortcut(int prepareEdge,
int from,
int to,
int origEdgeFirst,
int origEdgeLast,
int skipped1,
int skipped2,
double weight,
boolean reverse)
EdgeBasedNodeContractor.ShortcutHandleraddShortcut in interface EdgeBasedNodeContractor.ShortcutHandlerpublic int finishContractingNode()
EdgeBasedNodeContractor.ShortcutHandlerfinishContractingNode in interface EdgeBasedNodeContractor.ShortcutHandlerpublic void finishContraction()
EdgeBasedNodeContractor.ShortcutHandlerfinishContraction in interface EdgeBasedNodeContractor.ShortcutHandlerCopyright © 2012–2020. All rights reserved.