News for hackers. Stuff that matters.
Re:Map of GitHub by HellsMaddy on Sunday December 15, 2024 @05:32PM (#42426448)
How are connections between repos determined? I checked some of my repos and don't see any references in either direction for some of the connections.
Re:Map of GitHub by frereubu on Sunday December 15, 2024 @05:44PM (#42426503)
In the first line: "Dots are close to each other if they have a lot of common stargazers."
Re:Map of GitHub by HellsMaddy on Sunday December 15, 2024 @05:51PM (#42426537)
That explains why they are "close to each other" but not what determines which nodes are connected by an edge.
Re:Map of GitHub by tux3 on Sunday December 15, 2024 @06:32PM (#42426730)
I think it's the other way around. The similarity metric determines which repos have edges (possibly weighted?)

And then some clustering algorithm makes sense of this giant graph by laying out sets of nodes that have a lot of edges to each other, close to each other

The closeness is just layout, the edges is the data structure that determines closeness.

Re:Map of GitHub by anvaka on Monday December 16, 2024 @08:59AM (#42430992)
This is correct!
Re:Map of GitHub by minimaxir on Sunday December 15, 2024 @08:49PM (#42427313)
Jaccard similarity returns a value between 0 and 1 (in this case the vast majority of the values being close to 0). I suspect there's a hard-coded threshold value to determine an edge, e.g. if Jaccard similarity between A and B is > 0.2, create an edge.
Re:Map of GitHub by pierrec on Sunday December 15, 2024 @11:05PM (#42427931)
The author answered that question in the original HN post: https://news.ycombinator.com/item?id=35933981

Basically what others are guessing, lines represent the highest similarity scores based on "stargazers", which also forms the entire map. To anyone confused, the lines only appear once you click into a specific country.