Skip to content

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

@xiaohei07

Description

@xiaohei07

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions