#12148: random_digraph fails with ZeroDivisionError
-----------------------------+----------------------------------------------
Reporter: vbraun | Owner: jason, ncohen, rlm
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: graph theory | Keywords:
Work_issues: | Upstream: N/A
Reviewer: Nathann Cohen | Author:
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Changes (by ncohen):
* reviewer: => Nathann Cohen
Comment:
Hellooo !!
This patch does not passes tests !
{{{
sage -t "devel/sage-2/sage/sandpiles/sandpile.py"
**********************************************************************
File "/home/ncohen/.Sage/devel/sage-2/sage/sandpiles/sandpile.py", line
4861:
sage: g = random_digraph()
Exception raised:
Traceback (most recent call last):
File "/home/ncohen/.Sage/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/ncohen/.Sage/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/ncohen/.Sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_153[5]>", line 1, in <module>
g = random_digraph()###line 4861:
sage: g = random_digraph()
TypeError: random_digraph() takes at least 1 argument (0 given)
**********************************************************************
}}}
You need at least to provide the number of vertices `:-)`
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12148#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.