Skip to content

Commit

Permalink
minor clean
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydwivedi75 committed Oct 13, 2023
1 parent 2ad835f commit 8aa62c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def sparse_mx_to_torch_sparse_tensor(sparse_mx):
def get_node_ids_for_all_seq(i):
"""Returns node ids for all seqs, sampled from 1/2 hop neighborhood"""
# i, hop1indices, hop2indices, all_nodes_set, seq_length = args
global all_1hop_indices, all_2hop_indices, all_nodes_set, seq_length # node_ids_for_all_seq
global all_1hop_indices, all_2hop_indices, all_nodes_set, seq_length

hop1_neighbors = all_1hop_indices[i].tolist() # g.successors(i).tolist()
hop1_neighbors = all_1hop_indices[i].tolist()
hop2_neighbors = all_2hop_indices[i].tolist()

all_applicable_neighbors = hop1_neighbors + hop2_neighbors
Expand Down

0 comments on commit 8aa62c4

Please sign in to comment.