T - the edge typepublic interface Vertex<T extends Vertex<T>>
| Modifier and Type | Field and Description |
|---|---|
static double[] |
EMPTY_SPATIAL_ARRAY
An empty double array used as the default 0-dimensional spatial
coordinates for any vertex.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDistance(T neighbour)
returns the distance to the given neighbour
|
java.util.List<T> |
getNeighbours()
returns a list of all neighbours of the vertex
|
default double[] |
getSpatialPosition()
provides spatial information about a vertex if applicable.
|
static final double[] EMPTY_SPATIAL_ARRAY
java.util.List<T> getNeighbours()
double getDistance(T neighbour)
neighbour - the neighbour to get the distance forjava.lang.IllegalArgumentException - if the given neighbour is no neighbour of the vertexdefault double[] getSpatialPosition()
Copyright © 2018. All Rights Reserved.