#18032: Broken copy, plot in sandpile
----------------------------+----------------------------
   Reporter:  vbraun        |            Owner:
       Type:  defect        |           Status:  new
   Priority:  major         |        Milestone:  sage-6.6
  Component:  graph theory  |         Keywords:
  Merged in:                |          Authors:
  Reviewers:                |  Report Upstream:  N/A
Work issues:                |           Branch:
     Commit:                |     Dependencies:
   Stopgaps:                |
----------------------------+----------------------------
 The inherited copy method does not work
 {{{
 sage: g = {0:[1,2], 1:[0,3], 2:[0,3], 3:[1,2]}
 sage: G = Sandpile(g,3)
 sage: G.copy()
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-11-3cacdf1124d3> in <module>()
 ----> 1 G.copy()

 /home/vbraun/Code/sage.git/local/lib/python2.7/site-
 packages/sage/graphs/generic_graph.pyc in __copy__(self, weighted,
 implementation, data_structure, sparse, immutable)
    1025                            boundary=copy(self._boundary),
 weighted=weighted,
    1026                            implementation=implementation,
 -> 1027                            data_structure=data_structure)
    1028
    1029         attributes_to_copy = ('_assoc', '_embedding')

 TypeError: __init__() got an unexpected keyword argument 'weighted'
 }}}
 This messes up other inherited methods, e.g. `plot`

--
Ticket URL: <http://trac.sagemath.org/ticket/18032>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to