public interface EdgeIterator extends EdgeIteratorState
EdgeExplorer explorer = graph.createEdgeExplorer(); EdgeIterator iter = explorer.setBaseNode(nodeId); // calls to iter.getAdjNode(), getDistance() without calling next() will cause undefined behaviour! while(iter.next()) { int baseNodeId = iter.getBaseNode(); // equal to nodeId int adjacentNodeId = iter.getAdjNode(); // this is the node where this edge state is "pointing to" ... }
EdgeIteratorState
,
EdgeExplorer
Modifier and Type | Interface and Description |
---|---|
static class |
EdgeIterator.Edge |
Modifier and Type | Field and Description |
---|---|
static int |
NO_EDGE
integer value to indicate if an edge is valid or not which then would be initialized with
this value
|
K_UNFAVORED_EDGE
Modifier and Type | Method and Description |
---|---|
boolean |
next()
To be called to go to the next edge state.
|
copyPropertiesTo, detach, fetchWayGeometry, getAdditionalField, getAdjNode, getBaseNode, getBool, getDistance, getEdge, getFlags, getName, isBackward, isForward, setAdditionalField, setDistance, setFlags, setName, setWayGeometry
static final int NO_EDGE
Copyright © 2012–2018. All rights reserved.