outDegree method

int? outDegree(
  1. T vertex
)
inherited

Returns the number of outgoing directed edges for vertex.

  • Note: Returns null if vertex does not belong to the graph.

Implementation

int? outDegree(T vertex) {
  return vertexExists(vertex) ? edges(vertex).length : null;
}