Edges<T> typedef

Edges<T> = List<Vertex<T>> Function(Vertex<T> vertex)

Function returning a list of edge vertices. If a vertex has no neighbours it should return an empty list.

Note: The function must never return null.

Implementation

typedef Edges<T> = List<Vertex<T>> Function(Vertex<T> vertex);