|
8 | 8 | ############################################################################# |
9 | 9 | ## |
10 | 10 |
|
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 | +############################################################################# |
28 | 14 |
|
| 15 | +DeclareOperation("GraphvizDigraph", [IsDigraph]); |
| 16 | +DeclareOperation("GraphvizGraph", [IsDigraph]); |
29 | 17 | 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]); |
31 | 30 | 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]); |
32 | 45 | 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]); |
33 | 71 | 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); |
38 | 80 | DeclareAttribute("DotPartialOrderDigraph", IsDigraph); |
39 | 81 | DeclareAttribute("DotPreorderDigraph", IsDigraph); |
| 82 | + |
| 83 | +DeclareSynonym("GraphvizQuasiorderDigraph", GraphvizPreorderDigraph); |
40 | 84 | 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]); |
41 | 96 | DeclareOperation("DotHighlightedDigraph", [IsDigraph, IsList]); |
42 | 97 | DeclareOperation("DotHighlightedDigraph", |
43 | 98 | [IsDigraph, IsList, IsString, IsString]); |
44 | | - |
| 99 | +DeclareOperation("DotHighlightedGraph", [IsDigraph, IsList]); |
| 100 | +DeclareOperation("DotHighlightedGraph", |
| 101 | + [IsDigraph, IsList, IsString, IsString]); |
0 commit comments