easy-graph/Easy-Graph
EasyGraph is an open-source network analysis library designed to cover advanced network processing methods. It includes functionalities for detecting structural hole spanners, network embedding, and various classic network analysis techniques.
What it solves
EasyGraph is a Python library for analyzing networks (graphs) — collections of items and the connections between them. It helps researchers and developers answer questions about how things are linked, such as finding communities within a network, spotting "structural hole spanners" (nodes that bridge otherwise disconnected groups), embedding networks into lower-dimensional spaces, and detecting recurring patterns (motifs). It also extends to hypergraphs, where a single connection can link more than two items at once. The library is built for speed, using C++ for core parts, multiprocessing, and optional GPU acceleration for very large networks.
How it works
EasyGraph is organized into four components: the core EasyGraph library for standard graph analysis; EasyHypergraph, which handles higher-order relationships (hypergraphs) for both analysis and learning; EGGPU, a GPU-accelerated version that speeds up computations like betweenness centrality, k-core centrality, and single-source shortest paths; and EasyGNN for graph neural network work. Users install it with pip, create a graph, add edges, and call algorithms directly — for example, computing PageRank or detecting structural holes with the HIS algorithm. For performance, key components are written in C++ and GPU functions use native CUDA. If prebuilt packages aren't available for a platform, it can be built from source with CMake and a C++11 compiler (plus CUDA Toolkit 11.8+ for GPU support).
Who it's for
Researchers and developers working with network data across disciplines. The README highlights interdisciplinary network analysis and cites academic publications in Patterns (Cell Press) and Humanities and Social Sciences Communications (Nature Portfolio). It suits tasks like community detection, structural hole analysis, and large-scale network studies, and requires Python 3.8 to 3.16.
Highlights
- Supports undirected and directed networks and various network data formats
- Includes algorithms for community detection, structural hole spanner detection, network embedding, and motif detection
- Performance optimized with C++ implementations and multiprocessing
- Optional GPU acceleration via EGGPU for large-scale network analysis
- Hypergraph support via EasyHypergraph for higher-order relationships
- Published in Patterns (Cell Press) and Humanities and Social Sciences Communications (Nature Portfolio)
- Over 1 million downloads, with active releases and community engagement
Related
- Project
- Project
- Project
- Project
- Project