Skip to content

Commit

Permalink
Update kruskal.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Aravena authored Feb 6, 2018
1 parent 551f1e6 commit 6114e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spanningtrees/kruskal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ distance matrix `distmx` using [Kruskal's algorithm](https://en.wikipedia.org/wi
"""
function kruskal_mst end
# see https://github.com/mauro3/SimpleTraits.jl/issues/47#issuecomment-327880153 for syntax
@traitfn function kruskal_mst{T<:AbstractEdge, U, V, AG<:AbstractGraph{U}}(
@traitfn function kruskal_mst{T<:AbstractEdge, U<:Real, V, AG<:AbstractGraph{T}}(
g::AG::(!IsDirected),
distmx::AbstractMatrix{T} = weights(g)
distmx::AbstractMatrix{U} = weights(g)
)

edge_list = Vector{KruskalHeapEntry{T, U}}()
Expand Down

0 comments on commit 6114e16

Please sign in to comment.