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

Commit

Permalink
test default weights
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Jan 12, 2018
1 parent 7b76d6d commit 039757c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ using LightGraphsMatching
using Base.Test
using Cbc: CbcSolver

g =CompleteBipartiteGraph(2,2)
g = CompleteGraph(4)
w = LightGraphsMatching.default_weights(g)
@test all((w + w') .≈ ones(4,4) - eye(4,4))

g = CompleteBipartiteGraph(2,2)
w = zeros(4,4)
w[1,3] = 10.
w[1,4] = 1.
Expand Down

0 comments on commit 039757c

Please sign in to comment.