Easy Graph
Project description
Copyright (C) <2020-2021> by Mobile Systems and Networking Group, Fudan University
Documentation: https://easy-graph.github.io/
Bug Reports: https://github.com/easy-graph/Easy-Graph/issues
PyPI Homepage: https://pypi.org/project/Python-EasyGraph/
Introduction
EasyGraph is an open source graph processing library. It is written in Python and supports analysis for undirected graphs and directed graphs. It covers advanced graph processing methods in structural hole spanners detection, graph embedding and several classic methods (subgraph generation, connected component discovery and isomorphic graph generation).
EasyGraph integrates state-of-the-art graph processing approaches and implements them using Python. EasyGraph covers a series of advanced graph processing algorithms include structural hole spanners detection (HIS, MaxD, Common_Greedy, AP_Greedy and HAM), and graph representation learning (DeepWalk, Node2Vec, LINE and SDNE). Besides, for a number of general graph processing approaches, EasyGraph optimizes the algorithms and introduces parallel computing methods to achieve high efficiency.
Install
Installation with pip
$ pip install Python-EasyGraph
or conda
$ conda install Python-EasyGraph
Simple Example
This is a simple example for the detection of sturctural hole spanners using the HIS algorithm.
>>> import easygraph as eg
>>> G = eg.Graph()
>>> G.add_edges([(1,2), (2,3), (1,3), (3,4), (4,5), (3,5), (5,6)])
>>> _, _, H = eg.get_structural_holes_HIS(G, C=[frozenset([1,2,3]), frozenset([4,5,6])])
>>> H # The structural hole score of each node. Note that node `4` is regarded as the most possible structural hole spanner.
{1: {0: 0.703948974609375},
2: {0: 0.703948974609375},
3: {0: 1.2799804687499998},
4: {0: 1.519976806640625},
5: {0: 1.519976806640625},
6: {0: 0.83595703125}
}
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 Distributions
Built Distributions
File details
Details for the file Python_EasyGraph-0.2a36-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: Python_EasyGraph-0.2a36-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 150.5 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c5db242c7609c89d51964c51f54b55b74b9fdb11fae28d04ff1d7824bdbdb5c |
|
MD5 | 0d084883bccc42c0257819c59139c8c8 |
|
BLAKE2b-256 | b7dd3eedaf5300cfd535def95a53dd233bc76e60f545ed5e22b3ead015a5d3bb |
File details
Details for the file Python_EasyGraph-0.2a36-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: Python_EasyGraph-0.2a36-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 150.5 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e78e58f6f4e6fc94858b4d87e08d5f5a97947eb6dd2e16f247bc97f35210d19c |
|
MD5 | 6913827f799b93d3b24d39b7f8fedfd3 |
|
BLAKE2b-256 | c0428809a8bf8ad464755e82fed652db3e6617087119b8f9d7071de667841893 |
File details
Details for the file Python_EasyGraph-0.2a36-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: Python_EasyGraph-0.2a36-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 150.5 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c838579e5014900da4b72269937feb69385f7803df71b3523479d043f848973d |
|
MD5 | 3b52edecfcda1b183ac27b307d450771 |
|
BLAKE2b-256 | 885468f3ef0c0c1e3f0b6f6dffdfb0b48887cd2b541ef3f6d276d66aba6cf9a9 |
File details
Details for the file Python_EasyGraph-0.2a36-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: Python_EasyGraph-0.2a36-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 150.5 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cc6ae4a37cd99e002a6f73c84ee491b87f13a8dabf50dec5f0e543c9d926472 |
|
MD5 | 8c653a2f66149fdd3e51b512e192c1db |
|
BLAKE2b-256 | 4d03f9d4fee6b1400d73606efd176ba3a5680b8cb7d01b2beb561562e6084984 |