Skip to content

Commit 430dcfc

Browse files
rm unused nv(G) (#73)
1 parent f7ac776 commit 430dcfc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/connectivity.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ to each vertex. The component value is the smallest vertex ID in the component.
1111
This algorithm is linear in the number of edges of the graph.
1212
"""
1313
function connected_components!(label::AbstractVector, g::AbstractGraph{T}) where T
14-
nvg = nv(g)
15-
1614
for u in vertices(g)
1715
label[u] != zero(T) && continue
1816
label[u] = u

0 commit comments

Comments
 (0)