We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ebeed commit 2a9a32fCopy full SHA for 2a9a32f
src/SimpleGraphs/simpledigraph.jl
@@ -40,8 +40,8 @@ julia> SimpleDiGraph(UInt8(10))
40
```
41
"""
42
function SimpleDiGraph{T}(n::Integer=0) where {T<:Integer}
43
- fadjlist = [Vector{T}() for _ in one(T):n]
44
- badjlist = [Vector{T}() for _ in one(T):n]
+ fadjlist = [Vector{T}() for _ in 1:n]
+ badjlist = [Vector{T}() for _ in 1:n]
45
return SimpleDiGraph(0, fadjlist, badjlist)
46
end
47
0 commit comments