On Wednesday, 26 February 2014 13:06:29 UTC, Ed Scheinerman wrote: > > But if I want to add an additional vertex, I get trouble: > > julia> add_vertex!(g,5) > ERROR: no method push!(Range1{Int64},Int64) > in add_vertex! at /home/ers/.julia/Graphs/src/graph.jl:50 >
This is because SimpleGraph is using a Range1{Int64} as the container of its vertices which cannot be modified using push!. I opened a pull request that should make SimpleGraph editable: https://github.com/JuliaLang/Graphs.jl/pull/59