Would it be a good idea for `\^` for a digraph and a perm to mean `OnDigraphs`?
Sometimes I think it would be nice if D ^ p for a digraph and a permutation gave the same as OnDigraphs(D, p);.
For instance, you'd be able to do things like this:
gap> D := CycleDigraph(5);
<immutable cycle digraph with 5 vertices>
gap> p := (1,5)(2,4);;
gap> D ^ p = DigraphReverse(D);
true
However, I haven't though this through fully, and it feels like the sort of thing that might have some unintended consequences (especially in relation to mutability)... does anyone have any thoughts?
My apologies if this is a duplicate, I'm sure I've talked about this idea with people before.
Hi, can I have a look at this issue over the reading week and try implementing it?
Any progress with this so far? It'd be great to see a pull request that implements and documents it.
In case anyone is trying this again in the VIP, here are some thoughts:
- It would involve installing a method for
\^, in the same way other operations are installed inoper.gi. - The method would take a digraph (
IsDigraph) and a perm (IsPerm) and return the value ofOnDigraphs(D, p).
Completed this issue here