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

Commit

Permalink
special case for ProvidedVertexType
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Dec 21, 2014
1 parent 6c0b52f commit b18c4bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ make_vertex(g::AbstractGraph{ExVertex}, label::String) = ExVertex(num_vertices(g
vertex_index(v::ExVertex) = v.index
attributes(v::ExVertex, g::AbstractGraph) = v.attributes

typealias ProvidedVertexType Union(Integer, KeyVertex, ExVertex)
typealias ProvidedVertexType Union(KeyVertex, ExVertex)

# vertex_index for (V !<: ProvidedVertexType)
vertex_index{V<:ProvidedVertexType}(v::V, g::AbstractGraph{V}) = vertex_index(v)

function vertex_index{V}(v::V, g::AbstractGraph{V})
@graph_requires g vertex_list
Expand Down

0 comments on commit b18c4bb

Please sign in to comment.