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

Commit

Permalink
change generic zero(...) method to g::AbstractGraph in interface.jl (#…
Browse files Browse the repository at this point in the history
…582)

looks odd to be overwriting Base.zero for vararg Any inputs
  • Loading branch information
tkelman authored and sbromberger committed Apr 10, 2017
1 parent dd561b3 commit 107c2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ out_neighbors(x...) = _NI("out_neighbors")
Return a zero-vertex, zero-edge version of the same type of graph as `g`.
"""
zero(x...) = _NI("zero")
zero(g::AbstractGraph) = _NI("zero")

0 comments on commit 107c2ea

Please sign in to comment.