#15622: Immutable graphs must not be relabeled
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_work
           Type:         |    Milestone:  sage-6.1
  defect                 |   Resolution:
       Priority:  major  |    Merged in:
      Component:  graph  |    Reviewers:
  theory                 |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  529f7850c111c19522a8f18f9ce829e1e3a5b769
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  u/ncohen/15622         |
   Dependencies:         |
  #15619                 |
-------------------------+-------------------------------------------------
Changes (by SimonKing):

 * status:  needs_review => needs_work


Comment:

 Oops:
 {{{
 sage -t --long src/sage/graphs/base/static_sparse_backend.pyx
 **********************************************************************
 File "src/sage/graphs/base/static_sparse_backend.pyx", line 422, in
 sage.graphs.base.static_sparse_backend.StaticSparseBackend.relabel
 Failed example:
     g.relabel([],True)
 Expected:
     Traceback (most recent call last):
     ...
     ValueError: Thou shalt not remove a vertex from an immutable graph
 Got:
     <BLANKLINE>
     Traceback (most recent call last):
       File "/home/king/Sage/git/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 480, in _run
         self.execute(example, compiled, test.globs)
       File "/home/king/Sage/git/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 839, in execute
         exec compiled in globs
       File "<doctest
 sage.graphs.base.static_sparse_backend.StaticSparseBackend.relabel[2]>",
 line 1, in <module>
         g.relabel([],True)
     AttributeError: 'sage.graphs.base.static_sparse_backend.StaticSpars'
 object has no attribute 'relabel'
 }}}
 That is the only error, and I'll probably fix it in a review commit.

--
Ticket URL: <http://trac.sagemath.org/ticket/15622#comment:7>
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/groups/opt_out.

Reply via email to