outDegree method

int outDegree(
  1. Vertex<T> vertex
)

Returns the number of outgoing directed edges for vertex.

Implementation

int outDegree(Vertex<T> vertex) {
  return _edges[vertex]?.length ?? 0;
}