From 658ea33c4be5c2ddcdf0eb2ab623ada4c913348d Mon Sep 17 00:00:00 2001 From: Yue Ren Date: Fri, 10 Jan 2025 13:02:02 +0000 Subject: [PATCH] Combinatorics: fixed degree(::Graph) docu --- src/Combinatorics/Graphs/functions.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Combinatorics/Graphs/functions.jl b/src/Combinatorics/Graphs/functions.jl index 352f810dd721..0f23c4c2668e 100644 --- a/src/Combinatorics/Graphs/functions.jl +++ b/src/Combinatorics/Graphs/functions.jl @@ -511,8 +511,9 @@ end @doc raw""" degree(g::Graph{T} [, v::Int64]) where {T <: Union{Directed, Undirected}} -Return the degree of the vertex `v` in the graph `g`. -If `v` is missing, return the list of degrees of all vertices. +Return the degree of the vertex `v` in the graph `g`. If `v` is +missing, return the list of degrees of all vertices. If the graph is +directed, only neighbors reachable via outgoing edges are counted. # Examples ```jldoctest