Skip to content

Commit 88a5599

Browse files
gdalleamontoison
authored andcommitted
Typos
1 parent 9534ff3 commit 88a5599

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/graph.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ function neighbors(bg::BipartiteGraph, ::Val{side}, v::Integer) where {side}
218218
return view(rowvals(S), nzrange(S, v))
219219
end
220220

221-
degree(bg::BipartiteGraph, ::Val{side}, v::Integer) where {side} = length(neighbors(bg, v))
221+
function degree(bg::BipartiteGraph, ::Val{side}, v::Integer) where {side}
222+
return length(neighbors(bg, Val(side), v))
223+
end
222224

223225
function maximum_degree(bg::BipartiteGraph, ::Val{side}) where {side}
224226
return maximum(v -> degree(bg, Val(side), v), vertices(bg, Val(side)))

test/order.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using SparseArrays
22
using SparseMatrixColorings:
33
BipartiteGraph,
4-
Graph,
54
AdjacencyGraph,
65
BipartiteGraph,
76
LargestFirst,

test/suitesparse.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ using LinearAlgebra
44
using MatrixDepot
55
using SparseArrays
66
using SparseMatrixColorings:
7-
Graph,
87
AdjacencyGraph,
98
BipartiteGraph,
109
LargestFirst,

0 commit comments

Comments
 (0)