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
Adding subgraph_clusters argument to graphviz_string #21918
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
New commits:
|
Branch: u/slabbe/21918 |
Commit: |
comment:5
Maybe you want to review this? |
Author: Sébastien Labbé |
comment:6
The patch is working well, except when we set
|
comment:7
Indeed, but
so maybe it is a problem in |
comment:8
I was able to construct a small example showing the bug: edges = [(i,(i+1)%3,a) for i,a in enumerate('abc')]
G_no_labels = DiGraph(edges)
G_with_labels = DiGraph(edges)
C = [[0,1], [2]]
kwds = dict(subgraph_clusters=C,color_by_label=True,prog='dot',format='dot2tex')
G_no_labels.latex_options().set_options(edge_labels=False, **kwds)
G_with_labels.latex_options().set_options(edge_labels=True, **kwds) With no labels, each cluster is constructed within a scope including a
With labels, some
|
comment:9
Do you understand why? |
comment:10
Not yet. My first hypothesis was: it works when the size of the cluster is one. But it turns out to be false when I constructed another example where bigger cluster were drawn. Next thing I want to do is check dot2tex code to see why |
comment:11
The only place where
with no
and I get:
|
comment:12
And the fix is not as easy as:
because
|
comment:13
In summary, the bug reported by the reviewer when |
comment:14
I agree with you to open an independent ticket to fix the dot2tex issue. For me this patch is good to go. |
Reviewer: David Coudert |
comment:16
I created #22070 for the dot2tex issue. |
Changed branch from u/slabbe/21918 to |
We define some graph. It is the both sided Cayley graph of the monoid generated by two partial maps (defined in Chapter 5 Green’s relations and local theory of the book by Jean Éric Pin):
We view the graph:
We view it using dot language subgraphs clusters (here the strongly connected components) and also using optional package dot2tex:
CC: @JeremiasE
Component: graph theory
Keywords: days79
Author: Sébastien Labbé
Branch/Commit:
9bba185
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/21918
The text was updated successfully, but these errors were encountered: