Skip to content

Commit

Permalink
There are no zero edges for t2g_one
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Sep 8, 2022
1 parent 941bb15 commit 8e005ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geco/graphs/biqmac.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def t2g_graph(n, seed=0, keep_zero_edges=True):


@py_random_state("seed")
def t2g_one(n, seed=0, keep_zero_edges=True):
def t2g_one(n, seed=0):
"""
Generates a 2d torus graph as described by [1]
All edges have weight -1 or 1 and there are equal many of each (+-1)
Expand All @@ -314,4 +314,4 @@ def t2g_one(n, seed=0, keep_zero_edges=True):
"""

weight_generator = equal_many_ones(n * n, seed)
return t2g_base(n, lambda: next(weight_generator), keep_zero_edges)
return t2g_base(n, lambda: next(weight_generator))

0 comments on commit 8e005ca

Please sign in to comment.