JuliaLang/Graphs.jl — pull request #106 by kmsquire (2014-05-28 02:22:06+00:00)
Title: RFC: Allow general vertex types (fixes #105)

* As noted in #105, before this PR, vertices really only
could be Integers (including Char), KeyVertex, or ExVertex,
mostly because of explicit calls to vertex_index(v).
* This PR changes most calls of vertex_index(v) to
vertex_index(v,g), and makes sure to only call
vertex_index(v) for types that it is defined for
* Also provides a slow fallback vertex_index(v,g) for
non-provided vertex types when the graph's vertex list
is an AbstractArray.
* Tests also included

Note that the bulk of the change is indentation in the tests.