Skip to content

Commit

Permalink
Type of vertices irrelevant in that loop (#413)
Browse files Browse the repository at this point in the history
I changed it because it makes using other <:Integer's more tedious
  • Loading branch information
mschauer authored Dec 5, 2024
1 parent d5ebeed commit 2a9a32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SimpleGraphs/simpledigraph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ julia> SimpleDiGraph(UInt8(10))
```
"""
function SimpleDiGraph{T}(n::Integer=0) where {T<:Integer}
fadjlist = [Vector{T}() for _ in one(T):n]
badjlist = [Vector{T}() for _ in one(T):n]
fadjlist = [Vector{T}() for _ in 1:n]
badjlist = [Vector{T}() for _ in 1:n]
return SimpleDiGraph(0, fadjlist, badjlist)
end

Expand Down

0 comments on commit 2a9a32f

Please sign in to comment.