11using SimpleWeightedGraphs
22
3- @testset " SimpleWeightedGraphs" begin
3+ @testset verbose = true " SimpleWeightedGraphs" begin
44 @info (" Ignore warnings relating to adding and removing vertices and edges" )
55 adjmx1 = [0 1 0 ; 1 1 1 ; 0 1 0 ] # SimpleWeightedGraph
66 adjmx2 = [0 1 0 ; 1 1 1 ; 1 1 0 ] # SimpleWeightedDiGraph
@@ -263,7 +263,7 @@ using SimpleWeightedGraphs
263263 @test_throws BoundsError g[3 , 4 , Val {:weight} ()]
264264 @test_throws MethodError g[1 , 2 , Val {:wight} ()]
265265 add_edge! (g, 1 , 2 , 5.0 )
266-
266+
267267 @test g[1 , 2 , Val {:weight} ()] ≈ 5
268268 if is_directed (G)
269269 @test g[2 , 1 , Val {:weight} ()] ≈ 0
@@ -292,7 +292,7 @@ using SimpleWeightedGraphs
292292 @test g1 == g2
293293 @test ne (g1) == 5 # 1-2 1-3 2-3 3-4 4-1
294294 @test g1[1 , 3 , Val {:weight} ()] ≈ 2.5
295-
295+
296296 g = SimpleWeightedGraph (cycle_graph (5 ))
297297 g2 = SimpleWeightedGraph (g)
298298 @test g[1 , 3 , Val {:weight} ()] ≈ 0
@@ -317,7 +317,7 @@ using SimpleWeightedGraphs
317317 @test dg[2 , 1 , Val {:weight} ()] ≈ 0
318318 add_edge! (dg, 2 , 1 , 0.6 )
319319 g = SimpleWeightedGraph (dg)
320- @test g[1 , 2 , Val {:weight} ()] ≈ 1.1
320+ @test g[1 , 2 , Val {:weight} ()] ≈ 1.1
321321 @test g[1 , 3 , Val {:weight} ()] ≈ 0
322322 @test g[2 , 3 , Val {:weight} ()] ≈ 0.5
323323 end
0 commit comments