#15622: Immutable graphs must not be relabeled
----------------------------+---------------------------------
   Reporter:  ncohen        |            Owner:
       Type:  defect        |           Status:  new
   Priority:  major         |        Milestone:  sage-6.1
  Component:  graph theory  |         Keywords:
  Merged in:                |          Authors:  Nathann Cohen
  Reviewers:                |  Report Upstream:  N/A
Work issues:                |           Branch:
     Commit:                |     Dependencies:  #15603
   Stopgaps:                |
----------------------------+---------------------------------
 Now
 {{{
 sage: Graph(graphs.PetersenGraph(), immutable=True).relabel({})
 ...
 ValueError: Thou shalt not relabel an immutable graph
 }}}

 Before, the following happened
 {{{
 sage: Graph(graphs.PetersenGraph(),
 data_structure="static_sparse").relabel({})
 ...
 AttributeError: 'StaticSparseBackend' object has no attribute
 'vertex_ints'
 }}}

 This is actually another bug, as there should be a `vertex_ints` variable
 in static sparse graphs. But that's another problem to be addressed in
 another ticket `:-P`

 Nathann

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