Skip to content

Commit

Permalink
Roll forward PR #104
Browse files Browse the repository at this point in the history
  • Loading branch information
RerRayne committed Jul 10, 2024
1 parent 5631f12 commit ea337b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clrs/_src/probing.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ def heap(A_pos: np.ndarray, heap_size: int) -> np.ndarray:

def graph(A: np.ndarray) -> np.ndarray:
"""Constructs a `graph` probe."""
probe = (A != 0) * 1.0
probe = ((A + np.eye(A.shape[0])) != 0) * 1.0
return probe

Expand Down

0 comments on commit ea337b4

Please sign in to comment.