-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathdeprecated.gi
More file actions
116 lines (102 loc) · 3.89 KB
/
deprecated.gi
File metadata and controls
116 lines (102 loc) · 3.89 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#############################################################################
##
## deprecated.gi
## Copyright (C) 2024 James D. Mitchell
##
## Licensing information can be found in the README file of this package.
##
#############################################################################
##
BindGlobal("_PrintDeprecated", function(old, arg...)
Info(InfoWarning, 1, "`", old, "` is deprecated and will be removed in v3",
" use `", Concatenation(List(arg, AsString)), "` instead!");
end);
InstallMethod(DotDigraph, "for a digraph", [IsDigraph],
function(D)
_PrintDeprecated("DotDigraph", "GraphvizDigraph");
return AsString(GraphvizDigraph(D));
end);
InstallMethod(DotSymmetricDigraph, "for a digraph", [IsDigraph],
function(D)
_PrintDeprecated("DotSymmetricDigraph", "GraphvizGraph");
return AsString(GraphvizGraph(D));
end);
InstallMethod(DotSymmetricVertexColoredDigraph,
"for a digraph and list of colors",
[IsDigraph, IsHomogeneousList],
function(D, colors)
_PrintDeprecated("DotSymmetricVertexColoredDigraph",
"GraphvizVertexColoredGraph");
return AsString(GraphvizVertexColoredGraph(D, colors));
end);
InstallMethod(DotVertexColoredDigraph, "for a digraph and a list",
[IsDigraph, IsList],
function(D, colors)
_PrintDeprecated("DotVertexColoredDigraph",
"GraphvizVertexColoredDigraph");
return AsString(GraphvizVertexColoredDigraph(D, colors));
end);
InstallMethod(DotSymmetricEdgeColoredDigraph,
"for a digraph and list of colors",
[IsDigraph, IsHomogeneousList],
function(D, colors)
_PrintDeprecated("DotSymmetricEdgeColoredDigraph",
"GraphvizEdgeColoredGraph");
return AsString(GraphvizEdgeColoredGraph(D, colors));
end);
InstallMethod(DotEdgeColoredDigraph, "for a digraph and a list",
[IsDigraph, IsList],
function(D, colors)
_PrintDeprecated("DotEdgeColoredDigraph",
"GraphvizEdgeColoredDigraph");
return AsString(GraphvizEdgeColoredDigraph(D, colors));
end);
InstallMethod(DotSymmetricColoredDigraph,
"for a digraph, vertex colors, and edge colors",
[IsDigraph, IsHomogeneousList, IsHomogeneousList],
function(D, n_colors, e_colors)
_PrintDeprecated("DotSymmetricColoredDigraph",
"GraphvizColoredGraph");
return AsString(GraphvizColoredGraph(D, n_colors, e_colors));
end);
InstallMethod(DotColoredDigraph,
"for a digraph, vertex colors, and edge colors",
[IsDigraph, IsHomogeneousList, IsHomogeneousList],
function(D, n_colors, e_colors)
_PrintDeprecated("DotColoredDigraph",
"GraphvizColoredDigraph");
return AsString(GraphvizColoredDigraph(D, n_colors, e_colors));
end);
InstallMethod(DotVertexLabelledDigraph, "for a digraph", [IsDigraph],
function(D)
_PrintDeprecated("DotVertexLabelledDigraph",
"GraphvizVertexLabelledDigraph");
return AsString(GraphvizVertexLabelledDigraph(D));
end);
InstallMethod(DotPartialOrderDigraph, "for a digraph", [IsDigraph],
function(D)
_PrintDeprecated("DotPartialOrderDigraph",
"GraphvizPartialOrderDigraph");
return AsString(GraphvizPartialOrderDigraph(D));
end);
InstallMethod(DotPreorderDigraph, "for a digraph", [IsDigraph],
function(D)
_PrintDeprecated("DotPreorderDigraph",
"GraphvizPreorderDigraph");
return AsString(GraphvizPreorderDigraph(D));
end);
InstallMethod(DotHighlightedDigraph,
"for a digraph, list, and two strings",
[IsDigraph, IsList, IsString, IsString],
function(D, hi_verts, hi, lo)
_PrintDeprecated("DotHighlightedDigraph",
"GraphvizHighlightedDigraph");
return AsString(GraphvizHighlightedDigraph(D, hi_verts, hi, lo));
end);
InstallMethod(DotHighlightedDigraph, "for a digraph and list",
[IsDigraph, IsList],
function(D, list)
_PrintDeprecated("DotHighlightedDigraph",
"GraphvizHighlightedDigraph");
return AsString(GraphvizHighlightedDigraph(D, list, "black", "grey"));
end);