#10723: Implement edge-by-edge options for latexing graphs with dot2tex
---------------------------------+------------------------------------------
   Reporter:  nthiery            |       Owner:  jason, ncohen, rlm   
       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:                     |  
---------------------------------+------------------------------------------
Description changed by nthiery:

Old description:

> Implement edge-by-edge option for ploting/viewing/latexing graphs
>

> Here we color in red all edges touching the vertex ``0``::
> {{{
>    sage: G = graphs.PetersenGraph()
>    sage: G.set_latex_options(format="dot2tex", edge_options = lambda
> (u,v,label): { "color": "red" if u==0 else 1})
>    sage: view(G)
> }}}
>
> By the way, this refactors the code of color_by_label to simplify its
> logic and generalize it for dot2tex output.
>
> It also fixes a couple typos in the documentation, as well as
> little shortcomings in the quotation functions in dot2tex_utils.
>
> Patch also available from the Sage-Combinat queue:
> http://combinat.sagemath.org/patches/file/tip/trac_10723
> -graph_edge_options-nt.patch

New description:

 Implement edge-by-edge options for latexing graphs with dot2tex


 Here we color in red all edges touching the vertex ``0``::
 {{{
    sage: G = graphs.PetersenGraph()
    sage: G.set_latex_options(format="dot2tex", edge_options = lambda
 (u,v,label): { "color": "red" if u==0 else 1})
    sage: view(G)
 }}}

 By the way, this refactors the code of color_by_label to simplify its
 logic and generalize it for dot2tex output.

 It also fixes a couple typos in the documentation, as well as
 little shortcomings in the quotation functions in dot2tex_utils.

 Patch also available from the Sage-Combinat queue:
 http://combinat.sagemath.org/patches/file/tip/trac_10723
 -graph_edge_options-nt.patch

--

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