GitHub Stargazers | Building Graph- and Edge-level Prediction Algorithms for Developer Social Networks
Karishma Thakrar, Aniket Chauhan · 2025
Read GitHub Stargazers | Building Graph- and Edge-level Prediction Algorithms for Developer Social Networks by Karishma Thakrar, Aniket Chauhan (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2502-00058.txt.
Introduction
Karishma Thakrar and Aniket Chauhan map the social world of open-source developers in a 2025 paper. On GitHub, a star is a small vote of admiration, and twelve thousand developers' starring habits weave a network with real structure. Reading that structure could serve community builders and trend watchers.
The team models the network with graph neural networks. One model sorts developers into communities by their tastes, web building versus machine learning. Another predicts which developers should connect, recommending edges from similarity. Both tasks scored well in experiments. The results show admiration patterns can reveal tribes and likely friendships in the world's biggest code bazaar.
Catalog record
| CREATOR | Karishma Thakrar, Aniket Chauhan |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 21 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2502-00058
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
GitHub Stargazers | Building Graph- and Edge-level Prediction Algorithms for Developer Social Networks Karishma Thakrar, Aniket Chauhan Abstract Analyzing social networks formed by developers provides valuable insights for market segmentation, trend analysis, and community engagement. In this study, we explore the GitHub Stargazers dataset to classify developer communities and predict potential collaborations using graph neural networks (GNNs). By modeling 12,725 developer networks, we segment communities based on their focus on web development or machine learning repositories, leveraging graph attributes and node embeddings. Furthermore, we propose an edge-level recommendation algorithm that predicts new connections between developers using similarity measures. Our experimental results demonstrate the effectiveness of our approach in accurately segmenting communities and improving connection predictions, offering valuable insights for understanding open-source developer networks. 1 1 footnotetext: This architecture was first created in November 2023 and the paper was later published on arXiv in January 2025. The code is available at https://github.com/karishmathakrar/stargazers . 1 Introduction Effective market segmentation provides substantial advantages, as evidenced by a study conducted by Bain & Company. 1 According to this study, 81% of executives consider segmentation crucial for profit growth, with organizations employing effective segmentation strategies reporting a 10% higher profit over five years compared to those with less effective approaches. In the technology sector, particularly in the analysis of social networks formed by developers, segmentation plays a critical role. This study leverages the GitHub Stargazers dataset 2 from the Stanford Network Analysis Project (SNAP) to explore this phenomenon. The dataset, consisting of 12,725 graphs with 10 to 957 users each, presents challenges due to its unstructured nature and the complexity of interactions among various developer communities. To address these challenges, this work applies predictive and scalable graph neural network (GNN) models to segment the social networks into communities focused on either web development or machine learning. This segmentation serves as a foundation for market and trend analysis within the tech sector, providing insights into technological advancements and emerging areas of developer interest. Understanding network evolution is essential for market research, as it reveals trends in community development and shifts in user interests, enabling businesses to formulate targeted strategies that align with evolving community needs. This study examines these dynamics by analyzing and modeling node features and embeddings. The methodology further aims to identify potential new connections between nodes and develop an advanced recommendation algorithm, enhancing user experience and fostering engagement within the network. The primary objectives of this research are: • To model and classify developer networks within the dataset, providing a structured segmentation of communities based on their characteristics as either web development or machine learning. • To develop a recommendation algorithm that predicts potential node connections within the network. By achieving these objectives, this study contributes to a deeper understanding of open-source communities, capturing the nuanced dynamics and interactions among developers. 2 Data Sources & Preprocessing 2.1 Data Source The GitHub Stargazers dataset from the Stanford Network Analysis Project (SNAP), curated by Jure Leskovec, was utilized for this study. 2 • Dataset link : https://snap.stanford.edu/data/github_stargazers.html The dataset consists of 12,725 individual graphs, each representing a network of developers who have starred repositories on GitHub. Each network contains between 10 and 957 nodes, where nodes represent users, and edges represent undirected follower relationships. The dataset does not include additional descriptive features for nodes or edges. However, each network is labeled according to its primary association with either web development or machine learning repositories, facilitating the classification of developer communities. 2.2 Data Preprocessing for Exploratory Data Analysis (EDA) To analyze the structural properties of these networks, the dataset was first converted into graph objects using NetworkX , 3 a Python library for handling graph structures. This representation enabled a systematic examination of relationships and interactions within the networks. Several key network statistics were computed to characterize the dataset: • Node Count : The total number of developers (nodes) in each network. • Edge Count : The total number of connections (edges) between developers. • Average Degree : The mean number of connections per node, calculated by summing all node connections and dividing by the total number of nodes. • Density : A measure of how connected the network is, computed as the ratio of actual edges to the maximum possible number of edges. These metrics provided insights into network connectivity patterns and served as a foundation for further analysis. 4 2.3 Data Preprocessing for Modeling For graph-based modeling, the dataset was processed using Deep Graph Library (DGL) , which supports efficient implementation of Graph Neural Networks. 5 Each network was converted into a DGL graph object, incorporating both basic network properties and additional structural features to enhance predictive modeling. The extracted features included: • Degree : The number of direct connections each node has. • Clustering Coefficient : The likelihood of a node’s neighbors being connected, indicating local network cohesiveness. • Betweenness Centrality : A measure of how frequently a node appears on the shortest paths between other nodes, capturing its influence in network communication. • Closeness Centrality : An indicator of how efficiently a node can reach all other nodes, based on the average shortest path distance. • PageRank : A metric assessing node importance based on the quantity and quality of its connections, originally developed for ranking web pages. Following feature extraction, labels were converted into PyTorch tensors, and the dataset was partitioned into training (60%), validation (20%), and testing (20%) sets. Dataloaders were employed to process batches of 32 samples, optimizing computational efficiency during model training. This structured preprocessing ensured that the dataset was effectively prepared for both exploratory analysis and predictive modeling, enabling robust classification and recommendation tasks. 3 Exploratory Data Analysis 3.1 Node and Edge Distribution To understand the distribution of the dataset, a scatter plot comparing node count and edge count across the two categories was examined (see Figure 1 ). As expected, an increase in node count was generally accompanied by a corresponding increase in edge count. While no distinct separation between web development and machine learning networks was observed, several machine learning networks exhibited a notably higher edge-to-node ratio compared to web development networks. Specifically, among the densest networks in each category, machine learning networks had an average of 5.5 edges per node, whereas web development networks had a slightly lower average of 4.8 edges per node. Figure 1 : Comparison of Node Count and Edge Count for Each Class. 3.2 Correlation Analysis of Network Features Further analysis was conducted to investigate relationships between different network features. A correlation heatmap (see Figure 2 ) revealed a strong correlation of 0.94 between node count and edge count, reinforcing the notion that larger graphs tend to have greater absolute connections. Additionally, node count and edge count exhibited a moderate negative correlation with density (-0.57 and -0.48, respectively), indicating that as networks increase in size, their relative connectivity decreases. A positive correlation of 0.61 was also observed between edge count and average degree, which aligns with the expectation that networks with more edges generally have higher average degrees. Figure 2 : Correlation Heatmap of Graph Statistics. 3.3 Comparison of Web Development and Machine Learning Networks When comparing key structural metrics between web development and machine learning networks, machine learning networks