#15810: Immutable directed graphs should know that they are directed
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  graph theory       |   Resolution:
       Keywords:  immutable          |    Merged in:
  directed graph                     |    Reviewers:
        Authors:  Simon King         |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  1382f4f40bea6fbf32af4f0f745aa2f645a235af
  u/SimonKing/ticket/15810           |     Stopgaps:
   Dependencies:  #15623             |
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 Replying to [comment:15 ncohen]:
 > No problem with SparseGraph backends ? Then I don't get it either.

 Apparently:
 {{{
 sage: D = DiGraph({1:{2:['a','b'], 3:['c']}, 2:{3:['d']}})
 sage: D.is_directed_acyclic()
 True
 sage: I = D.copy(immutable=True)
 sage: I.is_directed_acyclic()
 True
 sage: D._backend
 <class 'sage.graphs.base.sparse_graph.SparseGraphBackend'>
 sage: I._backend
 <class 'sage.graphs.base.static_sparse_backend.StaticSparseBackend'>
 }}}

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