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.
|
int |
getEdges() |
GraphExtension |
getExtension() |
NodeAccess |
getNodeAccess()
Creates a node explorer to access node properties.
|
int |
getNodes() |
int |
getOtherNode(int edge,
int node) |
boolean |
isAdjacentToNode(int edge,
int node) |
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 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 will be returned in the direction of how it is storedIllegalStateException
- if edgeId is not validint getOtherNode(int edge, int node)
boolean isAdjacentToNode(int edge, int node)
AllEdgesIterator getAllEdges()
EdgeExplorer createEdgeExplorer(EdgeFilter filter)
EdgeExplorer
,
createEdgeExplorer()
EdgeExplorer createEdgeExplorer()
Graph copyTo(Graph g)
GraphExtension getExtension()
Copyright © 2012–2019. All rights reserved.