#10507: In Generic graphs, adjacency matrices with non-negative non-integral
entries are treated as "multi-edge" instead of "weighted"
----------------------------+-----------------------------------------------
   Reporter:  xqwang        |       Owner:  xqwang                   
       Type:  defect        |      Status:  new                      
   Priority:  minor         |   Milestone:                           
  Component:  graph theory  |    Keywords:  weighted adjacency matrix
     Author:  xqwang        |    Upstream:  N/A                      
   Reviewer:                |      Merged:                           
Work_issues:                |  
----------------------------+-----------------------------------------------
Changes (by xqwang):

  * owner:  jason, ncohen, rlm => xqwang


Comment:

 This defect can be fixed by changing the following two lines of code in
 $SAGE_HOME/local/lib/python/site-packages/sage/graphs/graph.py

     918                     e = int(e)[[BR]]

     919                     assert e >= 0
 TO

     918                     e_flr = int(e)[[BR]]

     919                     assert (e_flr >= 0 and e_flr == e)

 This change will make sure that if the adjacency matrix is non-integral
 then its entries are treated as weights (in stead of # of edges).

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