outDegree method
Returns the number of outgoing directed edges for vertex
.
- Note: Returns
null
ifvertex
does not belong to the graph.
Implementation
int? outDegree(T vertex) {
return vertexExists(vertex) ? edges(vertex).length : null;
}
Returns the number of outgoing directed edges for vertex
.
null
if vertex
does not belong to the graph.int? outDegree(T vertex) {
return vertexExists(vertex) ? edges(vertex).length : null;
}