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

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacCranko committed Jun 30, 2015
1 parent 56d6719 commit c67b9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ end
#@doc "filter g to include only the vertices present in iter which should not have duplicates
#returns the subgraph of g induced by set(iter) along with the mapping from the old vertex names to the new vertex names" ->
function induced_subgraph{T<:AbstractGraph}(g::T, iter)
if length(unique(iter)) == length(iter)
if length(unique(iter)) != length(iter)
error("Vertices in subgraph list must be unique")
elseif length(iter) == nv(g)
return copy(g) # if iter is not a proper subgraph
Expand Down

0 comments on commit c67b9f5

Please sign in to comment.