Skip to content

Commit e5036d8

Browse files
matbesanconsbromberger
authored andcommitted
Fix special graph deprecations (#58)
1 parent b6a4de2 commit e5036d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1010
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1111

1212
[compat]
13-
julia = "1"
1413
LightGraphs = "1.3"
14+
julia = "1"

test/simpleweightedgraph.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ using SimpleWeightedGraphs
177177
@test rem_vertex!(g, 2)
178178
@test nv(g) == 3 && ne(g) == 6
179179
end
180-
g = SimpleWeightedGraph(CompleteGraph(3), 3)
180+
g = SimpleWeightedGraph(complete_graph(3), 3)
181181
@test sum(weights(g)) == 2 * ne(g) * 3
182182
@test @inferred(get_weight(g, 1, 2)) == 3
183183

@@ -219,7 +219,7 @@ using SimpleWeightedGraphs
219219
@test s.weights[1,2] == 1
220220
@test s.weights[2,1] == 2
221221

222-
@test SimpleDiGraph(SimpleWeightedDiGraph(CycleGraph(4))) == SimpleDiGraph(CycleGraph(4))
223-
@test SimpleGraph(SimpleWeightedGraph(PathGraph(5))) == PathGraph(5)
222+
@test SimpleDiGraph(SimpleWeightedDiGraph(cycle_graph(4))) == SimpleDiGraph(cycle_graph(4))
223+
@test SimpleGraph(SimpleWeightedGraph(path_graph(5))) == path_graph(5)
224224

225225
end

0 commit comments

Comments
 (0)