Skip to main content

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 conda install networkx to install the NetworkX library

Run conda install python-louvain to help the modularity related analysis

Functions

quickgraph.info(G) returns the the basic information of a graph and plots the CDF of selected metrics.

quickgraph.LCC(G) characterizes the largest connected component (LCC) on selected metrics.

Example

>>> import quickgraph as qg
>>> import networkx as nx
>>> G = nx.les_miserables_graph()
>>> qg.info(G)
Number of Nodes: 77, Number of Edges: 254
Avg. degree: 6.5974, Avg. clustering coefficient: 0.5731, Modularity (Louvain) = 0.5663
Number of connected components: 1, Number of nodes in LCC: 77 ( 100.0 %)
>>> qg.LCC_analysis(G,1,1,1)
LCC: Avg. degree = 6.5974, Avg. clustering coefficient = 0.5731, Modularity (Louvain) = 0.5663
(rough) shortest path length = 0 : 3 ( 0.3 %), 1 : 34 ( 3.4 %), 2 : 182 ( 18.2 %), 3 : 205 ( 20.5 %), 4 : 72 ( 7.2 %), 5 : 4 ( 0.4 %), Avg. shortest path length = 2.642

License

See the LICENSE file for license rights and limitations (MIT).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quickgraph-0.25.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quickgraph-0.25-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file quickgraph-0.25.tar.gz.

File metadata

  • Download URL: quickgraph-0.25.tar.gz
  • Upload date:
  • Size: 5.1 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

Hashes for quickgraph-0.25.tar.gz
Algorithm Hash digest
SHA256 a052afcd90b5ddbd5dac6508cb38909a46aa8632b137854d0f60f8a5482a1c6b
MD5 0a3d10735369a425db30c862c3bcb18f
BLAKE2b-256 a631990003c4e396926985d42b3efe71cc940a2f78337b0c20ae22e010dc4092

See more details on using hashes here.

File details

Details for the file quickgraph-0.25-py3-none-any.whl.

File metadata

  • Download URL: quickgraph-0.25-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • 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

Hashes for quickgraph-0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 d08f25c944439b0d7f7d44c3adcadbab92e56958a44a03e0cc8c8498bd548175
MD5 838ecb2e9dd916fdae471bf5f4616e4d
BLAKE2b-256 5f41958b07ddd9303ae025ec5af684007ca0c4f4b5b7ee17794a2a7ceb597fd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page