Skip to content

Commit

Permalink
Fixes for upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed May 15, 2024
1 parent a36f4d9 commit 7952939
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gap/tools/display.gi
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,11 @@ end);
# Dot for semigroups/monoids
#############################################################################

# TODO deprecate
InstallMethod(DotString, "for a semigroup", [IsSemigroup],
S -> AsString(GraphvizDClasses(S)));

# TODO deprecate
InstallMethod(DotString, "for a semigroup", [IsSemigroup, IsRecord],
{S, opts} -> AsString(GraphvizDClasses(S, opts)));

Expand Down Expand Up @@ -665,6 +667,7 @@ function(S)
return gv;
end);

# TODO deprecate
InstallMethod(DotSemilatticeOfIdempotents,
"for inverse semigroup with inverse op",
[IsInverseSemigroup and IsGeneratorsOfInverseSemigroup],
Expand All @@ -674,17 +677,21 @@ S -> AsString(GraphvizSemilatticeOfIdempotents(S)));
# DotLeft/RightCayleyDigraph
########################################################################

# TODO deprecate
InstallMethod(DotLeftCayleyDigraph, "for a semigroup", [IsSemigroup],
S -> AsString(GraphvizLeftCayleyDigraph(S)));

# TODO deprecate
InstallMethod(DotRightCayleyDigraph, "for a semigroup", [IsSemigroup],
S -> AsString(GraphvizRightCayleyDigraph(S)));

# TODO deprecate
InstallMethod(DotLeftCayleyDigraph,
"for a semigroup and list of generator names",
[IsSemigroup, IsHomogeneousList],
{S, names} -> AsString(GraphvizLeftCayleyDigraph(S, names)));

# TODO deprecate
InstallMethod(DotRightCayleyDigraph,
"for a semigroup and list of generator names",
[IsSemigroup, IsHomogeneousList],
Expand Down Expand Up @@ -1056,8 +1063,8 @@ function(D, node_labels, edge_labels)
for m in [1 .. M] do
pos := Position(edge_labels, node_labels[m]);
if pos <> fail then
GraphvizSetAttr(GraphvizNode(gv, m), "color", edge_colors[pos]);
GraphvizSetAttr(GraphvizNode(gv, m), "style", "filled");
GraphvizSetAttr(GraphvizNodes(gv)[m], "color", edge_colors[pos]);
GraphvizSetAttr(GraphvizNodes(gv)[m], "style", "filled");
fi;
od;

Expand Down

0 comments on commit 7952939

Please sign in to comment.