Skip to content

Commit

Permalink
rm unused nv(G) (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasschmitz committed Nov 26, 2021
1 parent f7ac776 commit 430dcfc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/connectivity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ to each vertex. The component value is the smallest vertex ID in the component.
This algorithm is linear in the number of edges of the graph.
"""
function connected_components!(label::AbstractVector, g::AbstractGraph{T}) where T
nvg = nv(g)

for u in vertices(g)
label[u] != zero(T) && continue
label[u] = u
Expand Down

0 comments on commit 430dcfc

Please sign in to comment.