New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore the "backward" option for graph dot2tex #32438
Comments
Commit: |
This comment has been minimized.
This comment has been minimized.
New commits:
|
comment:2
Green bot (essentially). |
comment:3
I would prefer that Sébastien gives a positive review, if possible. |
comment:4
Yes, please, let me take a look. I was overloaded by the "rentrée". Next days will be better, I check this tomorrow on Thursday. |
comment:5
No problem. There isn't a big rush on this. I would appreciate it if this got into 9.5. |
comment:6
I still haven't had the opportunity the try the branch. My last update of sage broke and I need to take a look. But looking at the proposed branch, I have one comment: the change + - ``"backward"`` (boolean) needs documentation. Maybe for an English speaker it is clear, but to me, it is difficult to understand the difference between This is why I still think it is kind of a hack but I don't disagree to put it back. |
comment:8
I added a bit more to the example to indicate more clearly what changes, which is in line with the rest of the documentation for that section. Everything within that the code does works for all such programs (although it may or may not have an impact, but that is irrelevant). It is definitely not a hack as the layout order matters (for at least one program), and we have mathematical information attached to the digraph that would be wrong if we change the arrows. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
I added some documentation to the 'backward' option. I give a positive review to the commits made before mine. I let Travis change the status to positive review if he agrees with my commit. |
Reviewer: Sébastien Labbé |
comment:13
Let's get this in. |
Changed branch from public/graphs/backwards_option-32438 to |
The change made on #31381 is not compatible with the previous behavior of
backward=True
for the edge options withdot2tex
rendering of graphs. In particular, this was seen when viewing KR crystals such asWe will add back in the
backward
option, which supports different behavior thandir='back'
:backward=True
will be a layout-only indication that a particular arrow should be oriented in the opposite direction compared to other arrows.dir='back'
will have the arrows pointing in the backwards direction.This also reverts the change in #31719 to get the previous behavior.
CC: @sagetrac-sage-combinat @seblabbe @fchapoton @anneschilling @dwbump @nthiery @bsalisbury1
Component: graphics
Keywords: dot2tex
Author: Travis Scrimshaw
Branch/Commit:
7e2b1de
Reviewer: Sébastien Labbé
Issue created by migration from https://trac.sagemath.org/ticket/32438
The text was updated successfully, but these errors were encountered: