Skip to content

Commit

Permalink
neighbors count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreafailla authored Sep 25, 2024
1 parent 9d8ba6d commit 1106b60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ash_model/classes/undirected.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,9 @@ def get_neighbors(
for s in star:
nodes = self.get_hyperedge_nodes(s)
res.extend(nodes)

return set(res)
res = set(res)
res.discard(node)
return res

def get_degree(self, node: int, hyperedge_size: int = None, tid: int = None) -> int:
"""
Expand Down

0 comments on commit 1106b60

Please sign in to comment.