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

Commit

Permalink
Update kruskal.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Aravena committed 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
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.