#13713: view generates a LaTex (memory?) error on a graph of size 24
-------------------------------------+--------------------------------------
       Reporter:  slabbe             |         Owner:  tbd     
           Type:  defect             |        Status:  new     
       Priority:  major              |     Milestone:  sage-5.5
      Component:  optional packages  |    Resolution:          
       Keywords:  dot2tex            |   Work issues:          
Report Upstream:  N/A                |     Reviewers:          
        Authors:                     |     Merged in:          
   Dependencies:                     |      Stopgaps:          
-------------------------------------+--------------------------------------
Description changed by slabbe:

Old description:

> Create this graph:
>
> {{{
> sage: F = GF(3)
> sage: gens = [matrix(F,2,[1,0, 1,1]), matrix(F,2, [1,1, 0,1])]
> sage: group = MatrixGroup(gens)
> sage: G = group.cayley_graph()
> }}}
>
> It is not too big:
>
> {{{
> sage: G
> Digraph on 24 vertices
> }}}
>
> Note that since the vertices of G are matrices, the default
> `format='tkz_graph'` [http://www.liafa.univ-paris-
> diderot.fr/~labbe/blogue/2012/10/draw-a-graph-of-matrices-in-latex-using-
> sage/ does not work]. One need to use `format='dot2tex'`. With
> dot2tex-2.8.7-2 and graphviz installed, this works:
>
> {{{
> sage: G.set_latex_options(format='dot2tex', prog='neato')
> sage: view(G)
> }}}
>
> But not this one:
>
> {{{
> sage: G.set_latex_options(format='dot2tex', prog='dot')
> sage: view(G)
> An error occurred.
> ...
> LaTex error
> }}}
>
> I know a workaround which is to [http://www.liafa.univ-paris-
> diderot.fr/~labbe/blogue/2012/11/using-sage-graphviz-dot2tex-tikz-
> tikz2pdf-to-draw-a-graph use the tikz2pdf script] which compiles fine.
> But, it would be nice if view could compile G as well.

New description:

 Create this graph:

 {{{
 sage: F = GF(3)
 sage: gens = [matrix(F,2,[1,0, 1,1]), matrix(F,2, [1,1, 0,1])]
 sage: group = MatrixGroup(gens)
 sage: G = group.cayley_graph()
 }}}

 It is not too big:

 {{{
 sage: G
 Digraph on 24 vertices
 }}}

 Note that since the vertices of G are matrices, the default
 `format='tkz_graph'` [http://www.liafa.univ-paris-
 diderot.fr/~labbe/blogue/2012/10/draw-a-graph-of-matrices-in-latex-using-
 sage/ does not work]. One need to use `format='dot2tex'`. With
 dot2tex-2.8.7-2 and graphviz installed, the following work:

 {{{
 sage: G.set_latex_options(format='dot2tex', prog='neato')
 sage: view(G)
 sage: G.set_latex_options(format='dot2tex', prog='twopi')
 sage: view(G)
 sage: G.set_latex_options(format='dot2tex', prog='fdp')
 sage: view(G)
 }}}

 But not these ones:

 {{{
 sage: G.set_latex_options(format='dot2tex', prog='dot')
 sage: view(G)
 An error occurred.
 ...
 LaTex error
 sage: G.set_latex_options(format='dot2tex', prog='circo')
 sage: view(G)
 An error occurred.
 ...
 LaTex error
 }}}

 I know a workaround which is to [http://www.liafa.univ-paris-
 diderot.fr/~labbe/blogue/2012/11/using-sage-graphviz-dot2tex-tikz-
 tikz2pdf-to-draw-a-graph use the tikz2pdf script] which compiles fine.
 But, it would be nice if view could compile G as well.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13713#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to