getNeighbors

abstract fun getNeighbors(vertex: T): Sequence<T>

Return

a sequence of neighboring vertices for the specified vertex.

Parameters

vertex

the vertex whose neighbors are to be retrieved.