We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95ca77d commit 3a39e63Copy full SHA for 3a39e63
1 file changed
src/graph.jl
@@ -224,7 +224,7 @@ end
224
function degree(g::AdjacencyGraph{T,true}, v::Integer) where {T}
225
S = pattern(g)
226
rvS = rowvals(S)
227
- d = S.colptr[v+1] - S.colptr[v]
+ d = S.colptr[v + 1] - S.colptr[v]
228
for index in nzrange(S, v)
229
row = rvS[index]
230
if row >= v
@@ -237,7 +237,7 @@ end
237
238
function degree(g::AdjacencyGraph{T,false}, v::Integer) where {T}
239
240
241
return d
242
end
243
0 commit comments