#10723: Implement edge-by-edge options for latexing graphs with dot2tex
---------------------------------+------------------------------------------
   Reporter:  nthiery            |       Owner:  nthiery              
       Type:  enhancement        |      Status:  needs_review         
   Priority:  major              |   Milestone:  sage-4.7             
  Component:  graph theory       |    Keywords:  graph, latex, dot2tex
     Author:  Nicolas M. ThiƩry  |    Upstream:  N/A                  
   Reviewer:                     |      Merged:                       
Work_issues:                     |  
---------------------------------+------------------------------------------

Comment(by rbeezer):

 Some comments and suggestions from a first pass through the patch,
 experimenting with the code and running doctests.

 dot2tex_utils.py:

 line 95:  strips string representation of ``x`` *from* quotes and
 newlines.
   Not part of the patch, but while you are here...
   Native speaker advice:  I'd say "strip string *of* quotes"


 generic_graph.py:

 line 12199:
   The doctest with the Cayley graph is not very instructive if you do not
 know what the (automatically-supplied) labels are - especially if you
 don't know any group theory.  Maybe just a line or two describing the
 graph's labels before you go to work with them?

 line 12212:
   I did not understand the warning until I re-read one of your emails.
 "Collision" suggests to me that one edge is getting two colors (two colors
 in the same place).  Instead, I think you mean that the "rainbow"
 assignments as a default will provide a color to some other edge, which is
 identical to a color that is user-supplied for an edge.  Is that right?  I
 think this is a bit "dangerous" - a user could wonder how "their" color
 ended up on other edges?

   In any event, I really like the rainbow colors for ''all'' of the edges
 as a default, but the minute there are some user-supplied colors, then I
 think the other edges should get a single default color (probably black).

 graph_latex.py:

   line 226:  What happens when you try to  view(G)? (Answer: I think this
 is one of the doctest failures.)

   line 534:  I really think {{{color_by_label}}}  should be
 {{{edge_color_by_label}}}.  One might want to do exactly the same thing
 with the vertices in the future?  Or it should be unambiguous just what is
 being colored?

   line 857:  {{{edge_labels}}}  (plural)  is a good change.

 Doctests:  4.6.2.alpha4, dot2tex-2.8.7-2, graphviz 2.26.3[[BR]]
 sage -t  devel/sage/sage/graphs/graph_plot.py # 12 doctests failed[[BR]]
 sage -t  devel/sage/sage/graphs/graph_latex.py # 1 doctests failed[[BR]]
 sage -t  devel/sage/sage/graphs/generic_graph.py # 4 doctests failed[[BR]]

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10723#comment:10>
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