#15278: Hash and equality for graphs
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:
           Type:  defect             |       Status:  new
       Priority:  major              |    Milestone:  sage-5.13
      Component:  graph theory       |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Simon King         |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/SimonKing/ticket/15278           |  07bad466ab9a3e2ffe82c142cc6d0c515f1ae452
   Dependencies:  #12601, #15491     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 Shouldn't named graphs be immutable?
 {{{
 sage: G = graphs.PetersenGraph()
 sage: G._backend
 <class 'sage.graphs.base.sparse_graph.SparseGraphBackend'>
 sage: G.delete_vertex(1)
 sage: G
 Petersen graph: Graph on 9 vertices
 sage: G.delete_vertex(2)
 sage: G
 Petersen graph: Graph on 8 vertices
 }}}
 I would expect that in order to modify something "named", one should
 create a mutable copy first.

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