#7314: Average distance, Wiener Index, Szeged index
----------------------------+-----------------------------------------------
   Reporter:  ncohen        |       Owner:  rlm         
       Type:  enhancement   |      Status:  needs_review
   Priority:  major         |   Milestone:  sage-4.2.1  
  Component:  graph theory  |    Keywords:              
Work_issues:                |      Author:              
   Reviewer:                |      Merged:              
----------------------------+-----------------------------------------------

Comment(by mhansen):

 In the docstrings, you should not put comments on the sage: line like in

 {{{
 EXAMPLE::

     sage: # From [2], cited in [1]
     sage: g=graphs.PathGraph(10)
     sage: w=lambda x: (x*(x*x -1)/6)
     sage: g.wiener_index()==w(10)
     True
 }}}

 Instead, it should be

 {{{
 EXAMPLE:

 From [2], cited in [1]::

     sage: g=graphs.PathGraph(10)
     sage: w=lambda x: (x*(x*x -1)/6)
     sage: g.wiener_index()==w(10)
     True
 }}}

 Also, you should see the way that references are handled elsewhere in the
 Sage library.

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