Skip to content

Commit 3a39e63

Browse files
committed
Fix graph.jl
1 parent 95ca77d commit 3a39e63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/graph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ end
224224
function degree(g::AdjacencyGraph{T,true}, v::Integer) where {T}
225225
S = pattern(g)
226226
rvS = rowvals(S)
227-
d = S.colptr[v+1] - S.colptr[v]
227+
d = S.colptr[v + 1] - S.colptr[v]
228228
for index in nzrange(S, v)
229229
row = rvS[index]
230230
if row >= v
@@ -237,7 +237,7 @@ end
237237

238238
function degree(g::AdjacencyGraph{T,false}, v::Integer) where {T}
239239
S = pattern(g)
240-
d = S.colptr[v+1] - S.colptr[v]
240+
d = S.colptr[v + 1] - S.colptr[v]
241241
return d
242242
end
243243

0 commit comments

Comments
 (0)