Skip to content

Changing PreservationTopKEdgeSampling and fixing multi edges#22

Merged
jmrozanec merged 4 commits into
jmCodeCraft:mainfrom
halehdizaji:main
Sep 19, 2025
Merged

Changing PreservationTopKEdgeSampling and fixing multi edges#22
jmrozanec merged 4 commits into
jmCodeCraft:mainfrom
halehdizaji:main

Conversation

@halehdizaji

@halehdizaji halehdizaji commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

I changed PreservationTopKEdgeSampling to sample a ratio of each node's neighborhood, selecting neighbors with higher degrees and added the HasEdge() function to graph.go. Also I changed the AddEdge() function to avoid multi edges in undirected graphs. When adding edges, it checks for the existence of the edge.

Added the function: HasEdge()
Changed the PreservationTopKEdgeSampling to sample a ratio of each node's neighborhood, selecting neighbors with higher degrees.
Changed the AddEdge() function to avoid multi edges in undirected graphs. When adding edges, it checks for the existence of the edge.
@halehdizaji halehdizaji changed the title Changing PreservationTopKEdgeSampling Changing PreservationTopKEdgeSampling and fixing multi edges Sep 15, 2025
Separated TopKEdge sampling and TopRatioEdge sampling algorithms.
@jmrozanec jmrozanec merged commit b9ed4f0 into jmCodeCraft:main Sep 19, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants