#13418: Add method for drawing graphs using Ivan Kuckir graph drawer
--------------------------------+-------------------------------------------
       Reporter:  slabbe        |         Owner:  slabbe      
           Type:  enhancement   |        Status:  needs_review
       Priority:  major         |     Milestone:  sage-5.6    
      Component:  graph theory  |    Resolution:              
       Keywords:                |   Work issues:              
Report Upstream:  N/A           |     Reviewers:              
        Authors:                |     Merged in:              
   Dependencies:                |      Stopgaps:              
--------------------------------+-------------------------------------------

Old description:

> This adds the following method :
>
> {{{
> sage: g = graphs.PetersenGraph()
> sage: g.g_ivank_string()
> '10:1-8,1-9,1-10,2-5,2-7,2-10,3-4,3-7,3-9,4-6,4-10,5-6,5-9,6-8,7-8'
> }}}
>
> This string can be used for visualization at this adress :
>
> http://g.ivank.net/g.html#10:1-2,1-5,1-6,2-3,2-7,3-4,3-8,4-5,4-9,5-10,6-8,6-9,7-9,7-10,8-10
>
> References :
>
> http://www.chromeexperiments.com/detail/graph-drawer/
> http://g.ivank.net/
>
> '''Apply''': [attachment:13418_ivank_graph_drawer-sl.patch]

New description:

 This adds the following method :

 {{{
 sage: g = graphs.PetersenGraph()
 sage: g.g_ivank_string()
 '10:1-8,1-9,1-10,2-5,2-7,2-10,3-4,3-7,3-9,4-6,4-10,5-6,5-9,6-8,7-8'
 }}}

 This string can be used for visualization at this adress :

 http://g.ivank.net/

 '''Apply''': [attachment:13418_ivank_graph_drawer-sl.patch]

--

Comment (by slabbe):

 Also, I followed the convention that methods returning string
 representation of a graph ends with `"string"` :

 {{{
 sage: g = graphs.PetersenGraph()
 sage: g.*string*?
 g.graph6_string
 g.graphviz_string
 g.sparse6_string
 }}}

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