#18046: Graphs with multiedges and latex
-------------------------------------+-------------------------------------
       Reporter:  jclaas             |        Owner:
           Type:  enhancement        |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.6
      Component:  graph theory       |   Resolution:
       Keywords:  graph-theory,      |    Merged in:
  multiedges, latex                  |    Reviewers:
        Authors:  Jacob Laas         |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  b025f2ad103c5596edde303e6bcf983ecea4d0e2
  u/jclaas/graphs_with_multiedges_and_latex|     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by jclaas):

 I've just pushed a commit containing updated code so that graphs with
 multiedges can be tex-ified, but there's a particular case that still
 causes issue: when a set of multiedges contain labels, their
 customizations do not match up correctly.

 My first guess was that this due to the nature of using a dict_of_dicts to
 track all edge/vertex properties, which python then gets the order of
 hashable items mixed up.

 See below for a test case illustrating the issue:
 {{{
 mygraph = DiGraph(multiedges=True)
 mygraph.add_edge('A','B','thinnest')
 mygraph.add_edge('A','B','blah')
 mygraph.add_edge('A','B','thickest')
 mygraph.add_edge('A','C','blah')
 mygraph.add_edge('B','C','blah')
 mygraph.add_edge('C','B','blah')
 mygraph.set_latex_options(
     units='in',
     graphic_size=(6,6),
     edge_thickness=0.01,
     edge_labels=True,
     edge_thicknesses={('A','B'):[0.01,0.025,0.05]},
     )
 print latex(mygraph)
 view(latex(mygraph))
 }}}

 I've specified a list of thicknesses for the multiedges 'A' -> 'B'. Their
 labels were defined in a particular order, and the thicknesses are meant
 to match this order, but they don't.. any ideas?

--
Ticket URL: <http://trac.sagemath.org/ticket/18046#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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to