Erdos.jl icon indicating copy to clipboard operation
Erdos.jl copied to clipboard

add iterable interface to maps

Open CarloLucibello opened this issue 7 years ago • 0 comments

It would be nice to have

for (e, val) in emap
   ....
end

for (v, val) in vmap
   ....
end

An option for an iterator would be

(emap[e] for e in edges(emap.g) if haskey(emap, e))

CarloLucibello avatar Jun 17 '17 05:06 CarloLucibello