Skip to content

Commit 3bb8dae

Browse files
authored
Base.OneTo for vertices
1 parent 8186a30 commit 3bb8dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StaticGraphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ end
7373
end
7474

7575
nv(g::AbstractStaticGraph{T, U}) where T where U = T(length(g.f_ind) - 1)
76-
vertices(g::AbstractStaticGraph{T, U}) where T where U = one(T):nv(g)
76+
vertices(g::AbstractStaticGraph{T, U}) where T where U = Base.OneTo(nv(g))
7777

7878
has_edge(g::AbstractStaticGraph, e::AbstractStaticEdge) =
7979
insorted(dst(e), outneighbors(g, src(e)))

0 commit comments

Comments
 (0)