Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #118 from IainNZ/patch-2
Browse files Browse the repository at this point in the history
Provide default argument for VertexListVisitor constructor
  • Loading branch information
lindahua committed Oct 28, 2014
2 parents 0acf4cd + 7bfd5a8 commit 40d9ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph_visit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract AbstractGraphVisitAlgorithm
type VertexListVisitor{V} <: AbstractGraphVisitor
vertices::Vector{V}

function VertexListVisitor(n::Integer)
function VertexListVisitor(n::Integer=0)
vs = Array(V, 0)
sizehint(vs, n)
new(vs)
Expand Down

0 comments on commit 40d9ca0

Please sign in to comment.