Skip to content

Commit

Permalink
Fix indexing error
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Oct 17, 2024
1 parent dfc2300 commit f40a828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PopPUNK/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,7 @@ def retain_only_query_clusters(G, rlist, qlist, use_gpu = False):
# Identify network components containing queries
component_dict = gt.label_components(G)[0]
components_with_query = set()
for i in range(num_refs+1,G.num_vertices()):
for i in range(num_refs,G.num_vertices()):
v = G.vertex(i) # Access vertex by index
components_with_query.add(component_dict[v])
# Create a boolean filter based on the list of component IDs
Expand Down

0 comments on commit f40a828

Please sign in to comment.