#13658: Typo in Graph.girth()
--------------------------------+-------------------------------------------
       Reporter:  ppurka        |         Owner:  jason, ncohen, rlm
           Type:  defect        |        Status:  new               
       Priority:  minor         |     Milestone:  sage-5.5          
      Component:  graph theory  |    Resolution:                    
       Keywords:                |   Work issues:                    
Report Upstream:  N/A           |     Reviewers:                    
        Authors:                |     Merged in:                    
   Dependencies:                |      Stopgaps:                    
--------------------------------+-------------------------------------------

Old description:

> Two issues I see:
> 1. There seems to be a typo in the following section of the code. The
> variable `thislList` should be `thisList`. Don't know what it affects or
> if this variable is really needed to be reset.
> {{{
>                             if u in thisList:
>                                 best = depth*2-1
>                                 thislList = set()
>                                 break
> }}}
> 2. The variable `seen` is never used.

New description:

 There seems to be a typo in the following section of the code. The
 variable `thislList` should be `thisList`. Don't know what it affects or
 if this variable is really needed to be reset.
 {{{
                             if u in thisList:
                                 best = depth*2-1
                                 thislList = set()
                                 break
 }}}

--

Comment (by ppurka):

 Sorry, I thought `seen` was a set. Fixing the description :/

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