#12181: random_DAG does not terminate on it's default inputs
-----------------------------+----------------------------------------------
Reporter: mderickx | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.8
Component: PLEASE CHANGE | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Comment(by bbanu):
It appears it is stuck in /local/lib/python2.6/site-
packages/sage/sandpiles/sandpile.pyc at
4904 for j in range(i):
-> 4905 if p > random():
This is the same behavior as
{{{
random_DAG(5, 0)
}}}
It appears p=1/2 from the definition of random_DAG is evaluated to 0 (so
there are no possible connections), hence p = 0.5 should fix it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12181#comment:3>
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.