Skip to content

Commit

Permalink
start from half edges only
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciogtec committed Jul 13, 2024
1 parent 33abd35 commit 57e1545
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(
self.num_nodes = adj.shape[0]
mask = np.triu(np.ones((self.num_nodes, self.num_nodes)), 1)
half_adj = np.multiply(adj, mask)
self.edges = np.array(np.where(adj == 1)).T
self.edges = np.array(np.where(half_adj == 1)).T
self.num_edges = len(self.edges)
self.rng = np.random.default_rng(seed)

Expand Down

0 comments on commit 57e1545

Please sign in to comment.