edges method

List<Vertex<T>> edges(
  1. Vertex<T> vertex
)

Returns a list of the connected vertices of vertex. Note: Mathematically, an edge is an ordered pair (vertex, connected-vertex).

Implementation

List<Vertex<T>> edges(Vertex<T> vertex) => _edges[vertex] ?? [];