Skip to content

Commit

Permalink
Combinatorics: fixed degree(::Graph) docu
Browse files Browse the repository at this point in the history
  • Loading branch information
YueRen committed Jan 10, 2025
1 parent 43499a7 commit 658ea33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Combinatorics/Graphs/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 658ea33

Please sign in to comment.