fixed indexing issue when vertices are <:Integer

Fixes https://github.com/JuliaLang/Graphs.jl/issues/131. This was a simple change, but may have memory implications, as it's enumerating the vertices. Tests on graphs with order=1e7 don't show any appreciable slowdown, though.