public interface Graph
Modifier and Type | Method and Description |
---|---|
Graph |
copyTo(Graph g)
Copy this Graph into the specified Graph g.
|
EdgeExplorer |
createEdgeExplorer() |
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.
|
EdgeIteratorState |
edge(int a,
int b,
double distance,
boolean bothDirections)
Use edge(a,b).setDistance().setFlags instead
|
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.
|
GraphExtension |
getExtension() |
NodeAccess |
getNodeAccess()
Creates a node explorer to access node properties.
|
int |
getNodes() |
Graph getBaseGraph()
int getNodes()
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 edge(int a, int b, double distance, boolean bothDirections)
EdgeIteratorState getEdgeIteratorState(int edgeId, int adjNode)
adjNode
- is the node that will be returned via adjNode(). If adjNode is
Integer.MIN_VALUE then the edge with uncertain values for adjNode and baseNode (two
possibilities) will be returned.IllegalStateException
- if edgeId is not validAllEdgesIterator getAllEdges()
EdgeExplorer createEdgeExplorer(EdgeFilter filter)
EdgeExplorer
,
createEdgeExplorer()
EdgeExplorer createEdgeExplorer()
Graph copyTo(Graph g)
GraphExtension getExtension()
Copyright © 2012–2018. All rights reserved.