Skip to content

Commit

Permalink
Update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
damianbasso committed Feb 6, 2024
1 parent 2a81aa9 commit ea9c21c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/graphs/generators/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ def RandomKTree(n, k, seed=None):
sage: G = graphs.RandomKTree(50, 5)
sage: G.treewidth()
5
sage: G.show() # not tested
sage: G.show() # not tested
"""
if n < k + 1:
raise ValueError("n must be greater than k + 1")
Expand Down Expand Up @@ -1556,12 +1556,12 @@ def RandomPartialKTree(n, k, x, seed=None):
sage: G = graphs.RandomPartialKTree(50,5,5)
sage: G.treewidth()
5
sage: G.show()
sage: G.show() # not tested
"""
if seed is not None:
set_random_seed(seed)

g = RandomKTree(n,k,seed)
g = RandomKTree(n, k, seed)

# Check that x doesn't delete too many edges
# This formula calculates how many edges are in `k`-tree with `n` nodes
Expand Down

0 comments on commit ea9c21c

Please sign in to comment.