#13919: Bug in Graph() when input is a weighted matrix
----------------------------+-----------------------------------------------
   Reporter:  ncohen        |             Owner:  jason, ncohen, rlm
       Type:  defect        |            Status:  new               
   Priority:  major         |         Milestone:  sage-5.6          
  Component:  graph theory  |          Keywords:                    
Work issues:                |   Report Upstream:  N/A               
  Reviewers:                |           Authors:  Nathann Cohen     
  Merged in:                |      Dependencies:                    
   Stopgaps:                |  
----------------------------+-----------------------------------------------
 As reported in [1], the following code produces an exception :

 {{{
 sage: B =
 {0:{1:2,2:5,3:4},1:{2:2,4:7},2:{3:1,4:4,5:3},3:{5:4},4:{5:1,6:5},5:{6:7}}
 sage: grafo3 = Graph(B,weighted=True)
 sage: matad = grafo3.weighted_adjacency_matrix()
 sage: grafo4 = Graph(matad,format = "adjacency_matrix", weighted=True)
 sage: grafo4.shortest_path(0,6,by_weight=True)
 }}}

 This, because Sage has some problems understanding that the graph is not a
 multigraph...

 [1] https://groups.google.com/forum/?fromgroups=#!topic/sage-
 support/rIpMl1u7VXE

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