#12136: FVS function in DiGraph returns [0] instead of [] if already directed
acyclic
-----------------------------+----------------------------------------------
   Reporter:  fichtejo       |          Owner:  tbd     
       Type:  defect         |         Status:  new     
   Priority:  trivial        |      Milestone:  sage-4.8
  Component:  PLEASE CHANGE  |       Keywords:          
Work_issues:                 |       Upstream:  N/A     
   Reviewer:                 |         Author:          
     Merged:                 |   Dependencies:          
-----------------------------+----------------------------------------------

Comment(by fichtejo):

 Well the problem is the function does

 {{{
 1573: if self.is_directed_acyclic(): # this checks if it is a
                                      # directed acyclic graph
 1574: if value_only:
           returnĀ 0                   # if value only, we return 0.
                                      # It's totally fine, since the size
 of
                                      # the feedback vertex set is 0.
       from sage.sets.set import Set
           return Set([0])            # This seems strange to me. Since it
                                      # should return the empty set. But it
                                      # returns the set with exactly one
                                      # vertex {0}. Correct me if I'm
 wrong.''''''
 }}}

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