Skip to content

Commit 443ff11

Browse files
Replace Dot -> Graphviz
1 parent e67f88d commit 443ff11

File tree

4 files changed

+833
-697
lines changed

4 files changed

+833
-697
lines changed

PackageInfo.g

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
## <!ENTITY ORBVERS "4.8.2">
1717
## <!ENTITY DATASTRUCTURESVERS "0.2.5">
1818
## <!ENTITY NAUTYTRACESINTERFACEVERS "0.2">
19+
## <!ENTITY GRAPHVIZVERS "0.0.0">
1920
## <!ENTITY ARCHIVENAME "digraphs-1.7.1">
2021
## <!ENTITY COPYRIGHTYEARS "2014-24">
2122
## <#/GAPDoc>
@@ -390,7 +391,7 @@ Dependencies := rec(
390391
GAP := ">=4.10.0",
391392
NeededOtherPackages := [["io", ">=4.5.1"],
392393
["orb", ">=4.8.2"],
393-
["graphviz", "*"],
394+
["graphviz", ">=0.0.0"],
394395
["datastructures", ">=0.2.5"]],
395396
SuggestedOtherPackages := [["GAPDoc", ">=1.6.3"],
396397
["grape", ">=4.8.1"],

gap/display.gd

Lines changed: 80 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,94 @@
88
#############################################################################
99
##
1010

11-
DeclareAttribute("GraphvizDotDigraph", IsDigraph);
12-
DeclareOperation("GraphvizDotColoredDigraph", [IsDigraph, IsList, IsList]);
13-
DeclareOperation("GraphvizDotVertexColoredDigraph", [IsDigraph, IsList]);
14-
DeclareOperation("GraphvizDotEdgeColoredDigraph", [IsDigraph, IsList]);
15-
DeclareOperation("GraphvizDotVertexLabelledDigraph", [IsDigraph]);
16-
DeclareAttribute("GraphvizDotSymmetricDigraph", IsDigraph);
17-
DeclareOperation("GraphvizDotSymmetricColoredDigraph",
18-
[IsDigraph, IsList, IsList]);
19-
DeclareOperation("GraphvizDotSymmetricVertexColoredDigraph",
20-
[IsDigraph, IsList]);
21-
DeclareOperation("GraphvizDotSymmetricEdgeColoredDigraph", [IsDigraph, IsList]);
22-
DeclareAttribute("GraphvizDotPartialOrderDigraph", IsDigraph);
23-
DeclareAttribute("GraphvizDotPreorderDigraph", IsDigraph);
24-
DeclareSynonym("GraphvizDotQuasiorderDigraph", GraphvizDotPreorderDigraph);
25-
DeclareOperation("GraphvizDotHighlightedDigraph", [IsDigraph, IsList]);
26-
DeclareOperation("GraphvizDotHighlightedDigraph",
27-
[IsDigraph, IsList, IsString, IsString]);
11+
#############################################################################
12+
# Graphs and digraphs
13+
#############################################################################
2814

15+
DeclareOperation("GraphvizDigraph", [IsDigraph]);
16+
DeclareOperation("GraphvizGraph", [IsDigraph]);
2917
DeclareAttribute("DotDigraph", IsDigraph);
30-
DeclareOperation("DotColoredDigraph", [IsDigraph, IsList, IsList]);
18+
DeclareAttribute("DotGraph", IsDigraph);
19+
20+
# For backwards compatibility
21+
DeclareSynonym("GraphvizSymmetricDigraph", GraphvizGraph);
22+
DeclareSynonym("DotSymmetricDigraph", DotGraph);
23+
24+
#############################################################################
25+
# Vertex coloured graphs and digraphs
26+
#############################################################################
27+
28+
DeclareOperation("GraphvizVertexColoredDigraph", [IsDigraph, IsList]);
29+
DeclareOperation("GraphvizVertexColoredGraph", [IsDigraph, IsList]);
3130
DeclareOperation("DotVertexColoredDigraph", [IsDigraph, IsList]);
31+
DeclareOperation("DotVertexColoredGraph", [IsDigraph, IsList]);
32+
33+
# For backwards compatibility
34+
DeclareSynonym("GraphvizSymmetricVertexColoredDigraph",
35+
GraphvizVertexColoredGraph);
36+
DeclareSynonym("DotSymmetricVertexColoredDigraph",
37+
DotVertexColoredGraph);
38+
39+
#############################################################################
40+
# Edge coloured graphs and digraphs
41+
#############################################################################
42+
43+
DeclareOperation("GraphvizEdgeColoredDigraph", [IsDigraph, IsList]);
44+
DeclareOperation("GraphvizEdgeColoredGraph", [IsDigraph, IsList]);
3245
DeclareOperation("DotEdgeColoredDigraph", [IsDigraph, IsList]);
46+
DeclareOperation("DotEdgeColoredGraph", [IsDigraph, IsList]);
47+
48+
# For backwards compatibility
49+
DeclareSynonym("GraphvizSymmetricEdgeColoredDigraph", GraphvizEdgeColoredGraph);
50+
DeclareSynonym("DotSymmetricEdgeColoredDigraph", DotEdgeColoredGraph);
51+
52+
#############################################################################
53+
# Vertex and edge coloured graphs and digraphs
54+
#############################################################################
55+
56+
DeclareOperation("GraphvizColoredDigraph", [IsDigraph, IsList, IsList]);
57+
DeclareOperation("GraphvizColoredGraph", [IsDigraph, IsList, IsList]);
58+
DeclareOperation("DotColoredDigraph", [IsDigraph, IsList, IsList]);
59+
DeclareOperation("DotColoredGraph", [IsDigraph, IsList, IsList]);
60+
61+
# For backwards compatibility
62+
DeclareSynonym("GraphvizSymmetricColoredDigraph", GraphvizColoredGraph);
63+
DeclareSynonym("DotSymmetricColoredDigraph", DotColoredGraph);
64+
65+
#############################################################################
66+
# Vertex labelled graphs and digraphs
67+
#############################################################################
68+
69+
DeclareOperation("GraphvizVertexLabelledDigraph", [IsDigraph]);
70+
DeclareOperation("GraphvizVertexLabelledGraph", [IsDigraph]);
3371
DeclareOperation("DotVertexLabelledDigraph", [IsDigraph]);
34-
DeclareAttribute("DotSymmetricDigraph", IsDigraph);
35-
DeclareOperation("DotSymmetricColoredDigraph", [IsDigraph, IsList, IsList]);
36-
DeclareOperation("DotSymmetricVertexColoredDigraph", [IsDigraph, IsList]);
37-
DeclareOperation("DotSymmetricEdgeColoredDigraph", [IsDigraph, IsList]);
72+
DeclareOperation("DotVertexLabelledGraph", [IsDigraph]);
73+
74+
#############################################################################
75+
# Partial and preorder digraphs
76+
#############################################################################
77+
78+
DeclareAttribute("GraphvizPartialOrderDigraph", IsDigraph);
79+
DeclareAttribute("GraphvizPreorderDigraph", IsDigraph);
3880
DeclareAttribute("DotPartialOrderDigraph", IsDigraph);
3981
DeclareAttribute("DotPreorderDigraph", IsDigraph);
82+
83+
DeclareSynonym("GraphvizQuasiorderDigraph", GraphvizPreorderDigraph);
4084
DeclareSynonym("DotQuasiorderDigraph", DotPreorderDigraph);
85+
86+
#############################################################################
87+
# Highlighted subdigraphs
88+
#############################################################################
89+
90+
DeclareOperation("GraphvizHighlightedDigraph", [IsDigraph, IsList]);
91+
DeclareOperation("GraphvizHighlightedDigraph",
92+
[IsDigraph, IsList, IsString, IsString]);
93+
DeclareOperation("GraphvizHighlightedGraph", [IsDigraph, IsList]);
94+
DeclareOperation("GraphvizHighlightedGraph",
95+
[IsDigraph, IsList, IsString, IsString]);
4196
DeclareOperation("DotHighlightedDigraph", [IsDigraph, IsList]);
4297
DeclareOperation("DotHighlightedDigraph",
4398
[IsDigraph, IsList, IsString, IsString]);
44-
99+
DeclareOperation("DotHighlightedGraph", [IsDigraph, IsList]);
100+
DeclareOperation("DotHighlightedGraph",
101+
[IsDigraph, IsList, IsString, IsString]);

0 commit comments

Comments
 (0)