-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathdeprecations.jl
58 lines (58 loc) · 1.35 KB
/
deprecations.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@testset "Generator deprecations" begin
types_0 = [
BullGraph,
ChvatalGraph,
CubicalGraph,
DesarguesGraph,
DiamondGraph,
DodecahedralGraph,
FruchtGraph,
HeawoodGraph,
HouseGraph,
HouseXGraph,
IcosahedralGraph,
KarateGraph,
KrackhardtKiteGraph,
MoebiusKantorGraph,
OctahedralGraph,
PappusGraph,
PetersenGraph,
SedgewickMazeGraph,
TetrahedralGraph,
TruncatedCubeGraph,
TruncatedTetrahedronGraph,
TruncatedTetrahedronDiGraph,
TutteGraph,
]
types_1param = [
CompleteGraph,
CompleteDiGraph,
StarGraph,
StarDigraph,
PathGraph,
PathDiGraph,
CycleGraph,
CycleDiGraph,
WheelGraph,
WheelDiGraph,
BinaryTree,
Doublebinary_tree,
RoachGraph,
LadderGraph,
Circularladder_graph,
]
types_2params = [
CompleteBipartiteGraph, LollipopGraph, BarbellGraph, TuranGraph, CliqueGraph
]
for G in types_0
@test_deprecated G()
end
for G in types_1param
@test_deprecated G(5)
end
for G in types_2params
@test_deprecated G(5, 2)
end
@test_deprecated CompleteMultipartiteGraph([3, 5])
@test_deprecated Grid([3, 5])
end