#15681: Name of immutable graphs
----------------------------+---------------------------------
   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:  #15623
   Stopgaps:                |
----------------------------+---------------------------------
 Travis noticed in #15669 that immutable graphs were nameless. That's
 terrible.

 {{{
 sage: graphs.PetersenGraph()
 Petersen graph: Graph on 10 vertices
 sage: Graph(graphs.PetersenGraph(),immutable=True)
 Graph on 10 vertices
 }}}

 This patch fixes it. So doing, we now store the `name` attribute in the
 Python graph itself and not in the backend, where it does not really
 belong. This thing is for storing the graph data, not fancy attributes !

 New behaviour :

 {{{
 sage: graphs.PetersenGraph()
 Petersen graph: Graph on 10 vertices
 sage: Graph(graphs.PetersenGraph(),immutable=True)
 Petersen graph: Graph on 10 vertices
 }}}

 This patch is based upon #15623, because God made it that we will have to
 pay the Poset's `._immutable` hack until #15623 is merged `:-P`

 Nathann

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