Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does the function "create_edges_graphs_sparse_relative_distance" create an undirected graph #1

Open
xiaohei07 opened this issue Sep 14, 2024 · 0 comments

Comments

@xiaohei07
Copy link

xiaohei07 commented Sep 14, 2024

As the title says, maybe there is a node called A, and its first feature value is 1. Then there is a node called B with 10 first feature value. Now C1-C25 has their first feature values range from 11 to 12. The first feature values of other nodes are greater than 20. (Assuming that the distances between these nodes are all less than diff.)
For node A, through this function, it will build 25 undirected edges for B, C1-C24. For B, it will build 25 undirected edges for C1-C25. And so, the edge will be repeated multiple times
test code as show:
Snipaste_2024-09-14_20-45-03

the result is:
Snipaste_2024-09-14_20-44-29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant