Skip to content

Commit a1c1d13

Browse files
committed
Fix badj type constraint
1 parent 4604722 commit a1c1d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bipartite_graph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ mutable struct BipartiteGraph{I<:Integer,F<:Vector{Vector{I}},B<:Union{Vector{Ve
7272
badjlist::B # `badjlist[dst] => srcs` or `ndsts`
7373
metadata::M
7474
end
75-
BipartiteGraph(ne::Integer, fadj::AbstractVector, badj::Union{AbstractVector}=maximum(maximum, fadj); metadata=nothing) = BipartiteGraph(ne, fadj, badj, metadata)
75+
BipartiteGraph(ne::Integer, fadj::AbstractVector, badj::Union{AbstractVector,Integer}=maximum(maximum, fadj); metadata=nothing) = BipartiteGraph(ne, fadj, badj, metadata)
7676

7777
"""
7878
```julia

0 commit comments

Comments
 (0)