#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 | Keywords: immutable directed graph
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------------+--------------------------------------------
Bug:
{{{
sage: Q = DiGraph({1:{2:['a','b'], 3:['c']}, 2:{3:['d']}})
sage: Q.is_directed_acyclic()
True
sage: I = Q.copy(immutable=True)
sage: I.is_directed_acyclic()
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
<ipython-input-19-1dc52c5fb57c> in <module>()
----> 1 I.is_directed_acyclic()
/home/king/Sage/git/sage/local/lib/python2.7/site-
packages/sage/graphs/digraph.pyc in is_directed_acyclic(self, certificate)
1117 False
1118 """
-> 1119 return self._backend.is_directed_acyclic(certificate =
certificate)
1120
1121 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:19314)()
ValueError: Input must be a directed graph.
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15810>
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.