diff options
Diffstat (limited to 'examples/src/main/python/transitive_closure.py')
-rwxr-xr-x | examples/src/main/python/transitive_closure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/main/python/transitive_closure.py b/examples/src/main/python/transitive_closure.py index 7bf5fb6ddf..3d61250d8b 100755 --- a/examples/src/main/python/transitive_closure.py +++ b/examples/src/main/python/transitive_closure.py @@ -30,8 +30,8 @@ rand = Random(42) def generateGraph(): edges = set() while len(edges) < numEdges: - src = rand.randrange(0, numEdges) - dst = rand.randrange(0, numEdges) + src = rand.randrange(0, numVertices) + dst = rand.randrange(0, numVertices) if src != dst: edges.add((src, dst)) return edges |