public interface Graph
Modifier and Type | Method and Description |
---|---|
Graph |
copyTo(Graph g)
Copy this Graph into the specified Graph g.
|
default EdgeExplorer |
createEdgeExplorer()
Creates an EdgeExplorer that accepts all edges
|
EdgeExplorer |
createEdgeExplorer(EdgeFilter filter)
Returns an EdgeExplorer which makes it possible to traverse all filtered edges of a specific
node.
|
EdgeIteratorState |
edge(int a,
int b)
Creates an edge between the nodes a and b.
|
AllEdgesIterator |
getAllEdges() |
Graph |
getBaseGraph() |
BBox |
getBounds()
Returns the implicit bounds of this graph calculated from the lat,lon input of setNode
|
EdgeIteratorState |
getEdgeIteratorState(int edgeId,
int adjNode)
Returns a wrapper over the specified edgeId.
|
EdgeIteratorState |
getEdgeIteratorStateForKey(int edgeKey)
Returns the edge state for the given edge key
|
int |
getEdges() |
NodeAccess |
getNodeAccess()
Creates an object to access node properties.
|
int |
getNodes() |
int |
getOtherNode(int edge,
int node) |
TurnCostStorage |
getTurnCostStorage() |
boolean |
isAdjacentToNode(int edge,
int node) |
Weighting |
wrapWeighting(Weighting weighting)
Wraps the given weighting into a weighting that can be used by this graph
|
Graph getBaseGraph()
int getNodes()
int getEdges()
NodeAccess getNodeAccess()
BBox getBounds()
EdgeIteratorState edge(int a, int b)
a
- the index of the starting (tower) node of the edgeb
- the index of the ending (tower) node of the edgeEdgeIteratorState getEdgeIteratorState(int edgeId, int adjNode)
adjNode
- is the node that will be returned via getAdjNode(). If adjNode is
Integer.MIN_VALUE then the edge will be returned in the direction of how it is storedIllegalStateException
- if edgeId is not validEdgeIteratorState getEdgeIteratorStateForKey(int edgeKey)
EdgeIteratorState.getEdgeKey()
int getOtherNode(int edge, int node)
boolean isAdjacentToNode(int edge, int node)
AllEdgesIterator getAllEdges()
EdgeExplorer createEdgeExplorer(EdgeFilter filter)
default EdgeExplorer createEdgeExplorer()
createEdgeExplorer(EdgeFilter)
Graph copyTo(Graph g)
TurnCostStorage getTurnCostStorage()
TurnCostStorage
or null if not supportedCopyright © 2012–2021. All rights reserved.