neighbours

fun neighbours(t: T): List<T>

Retrieves a list the neighboring nodes of the specified node.

Return

A list of neighboring nodes connected to the specified node.

Parameters

t

The node whose neighbors are to be retrieved.

Throws

IllegalStateException

If the specified node is not found in the graph.