A Python package to view the skeleton of a social graph quickly.
Project description
Introduction
QuickGraph library can help you get a quick overview of a social graph in an extremely convenient way. QuickGraph will show the basic information of a graph, plot the CDF of selected metrics, characterize the largest connected component (LCC).
Overview
QuickGraph library can help you get a quick overview of a social graph in an extremely convenient way.
Show the basic information of a graph, plot the CDF of selected metrics, characterize the largest connected component (LCC), compute representative structural hole related indexes.
Copyright (C) <2021-2026> by Qingyuan Gong, Fudan University (gongqingyuan@fudan.edu.cn)
Before Installation
Please upgrade to Python 3.5
System Requirements
We have tested QuickGraph on both MacOSX (version 11.5.1) and Ubuntu (Version: 20.04 LTS). This library have not been tested on other platforms.
Usage
Please run the following commond and install the dependent libiraires:
Run
conda config --add channels conda-forge
conda update –all
to make the libraries fit to the operation system
Run
pip install python-igraph
to install the iGraph library
Run pip install leidenalg
to help the modularity related analysis
Note: Please change to pip3 install if you are using Apple M1 Chip
Functions
quickgraph.info(G) returns the the basic information of a graph and plots the CDF of selected metrics.
quickgraph.LCC_analysis(G) characterizes the largest connected component (LCC) of the input graph G on selected metrics.
Example
We utilize the SCHOLAT Social Network dataset as one example. https://www.scholat.com/research/opendata/#social_network
>>> import quickgraph
>>> quickgraph.demo()
Number of Nodes: 16007, Number of Edges: 202248
Avg. degree: 25.2699, Avg. clustering coefficient: 0.5486
Modularity (Leidenalg): 0.8651, Modularity (Label_Propagation): 0.8372
Number of connected components: 5423, Number of nodes in LCC: 9583 ( 59.8676 %)
Time (G_info): 4.675
LCC: Avg. degree = 40.023, Avg. clustering coefficient = 0.625, Modularity (Leidenalg): 0.8551, Modularity (Label_Propagation): 0.8209
(rough) shortest path length = 1 : 1 ( 0.1 %), 2 : 26 ( 2.6 %), 3 : 98 ( 9.8 %), 4 : 162 ( 16.2 %), 5 : 133 ( 13.3 %), 6 : 65 ( 6.5 %), 7 : 12 ( 1.2 %), 8 : 3 ( 0.3 %), Avg. shortest path length = 4.316
Time (LCC): 1.907
License
See the LICENSE file for license rights and limitations (MIT).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quickgraph-0.45.tar.gz.
File metadata
- Download URL: quickgraph-0.45.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
758013cb906b6928cb89885703538d5400385b87755d0fcfc6e4874c61f73b5d
|
|
| MD5 |
d82d8434d6a9039aa9b1be2cdcf53f29
|
|
| BLAKE2b-256 |
bdcc099d303ced7dc3e87a3f9a82d8bfb0f7cb2e7ca05ced62dfe91f2a50a8fc
|
File details
Details for the file quickgraph-0.45-py3-none-any.whl.
File metadata
- Download URL: quickgraph-0.45-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d5be26aa79960c62ca0e22e2058dd7b142ce4d46cfad4721a5466b0098b6fd3
|
|
| MD5 |
e4367294b6d4f296bb4990b918f5254e
|
|
| BLAKE2b-256 |
1198068a373cc22520defe5d7721458fa483e6b66f81d7650215a7e9d7fcfbde
|