On Jun 15, 3:03 am, William Stein <[email protected]> wrote:
> Just out of curiosity what computes the layout of the graph?  Does
> Sage give the vertex positions, then tikz takes care of the *text
> labels* and edge positions?  Or can tikz actually plot a layout?

The tkz-graph package is really more about presentation ("looks") than
about computation.  It will do simple things like circular and grid
layouts, paths on lines at 45-degree angles, etc.  It will easily
"bend" edges, which is useful for digraphs when there is an edge going
both ways between two vertices.  But on the whole, I think matters
regarding layouts are best handled within Sage itself, and then just
scaled linearly to fit bounding boxes, etc.

The strengths of tkz-graph are the placements and styles of labels on
vertices and edges, and the styles of the vertices and edges
themselves.  For example, edges can be of one color with thin black
borders, and at crossings there is an obvious "under and over"
appearance which helps the eye track an edge in a messy looking
graph.  Edge labels can appear in the middle of an edge (suitably
rotated to align with the edge), included inside a rectangle with a
colored border, with Latex math objects for contents, typeset
properly.

And finally, as Latex code they can be employed by all the support
Sage has for Latex, and they can be employed in other documents
without the whole business of including image files produced by some
other mechanism.


--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to