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

Comment (by SimonKing):

 Variation of the theme:
 {{{
 sage: Q = DiGraph({1:{2:['a','b'], 3:['c']}, 2:{3:['d']}}, immutable=True)
 sage: Q.is_directed_acyclic()
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)
 <ipython-input-3-a8ff599a3235> in <module>()
 ----> 1 Q.is_directed_acyclic()

 /home/king/Sage/git/sage/local/lib/python2.7/site-
 packages/sage/graphs/digraph.pyc in is_directed_acyclic(self, certificate)
    1108             False
    1109         """
 -> 1110         return self._backend.is_directed_acyclic(certificate =
 certificate)
    1111
    1112     def to_directed(self):

 /home/king/Sage/git/sage/local/lib/python2.7/site-
 packages/sage/graphs/base/c_graph.so in
 sage.graphs.base.c_graph.CGraphBackend.is_directed_acyclic
 (sage/graphs/base/c_graph.c:19328)()

 /home/king/Sage/git/sage/local/lib/python2.7/site-
 packages/sage/graphs/base/c_graph.so in
 sage.graphs.base.c_graph.bitset_init (sage/graphs/base/c_graph.c:3113)()

 ValueError: bitset capacity must be greater than 0
 }}}

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