Skip to main content

Easy Graph

Project description

EasyGraph(v.0.2a6)

Copyright (C) <2020> by Mobile Systems and Networking Group, Fudan University

.. image:: https://img.shields.io/pypi/v/Python-EasyGraph.svg :target: https://pypi.org/project/Python-EasyGraph/

.. image:: https://img.shields.io/pypi/pyversions/Python-EasyGraph.svg :target: 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 <https://en.wikipedia.org/wiki/Structural_holes>_ using the HIS <https://keg.cs.tsinghua.edu.cn/jietang/publications/WWW13-Lou&Tang-Structural-Hole-Information-Diffusion.pdf>_ algorithm.

.. code:: python

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 Distribution

Python-EasyGraph-0.2a6.tar.gz (39.5 kB view details)

Uploaded Source

File details

Details for the file Python-EasyGraph-0.2a6.tar.gz.

File metadata

  • Download URL: Python-EasyGraph-0.2a6.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/2.7.17

File hashes

Hashes for Python-EasyGraph-0.2a6.tar.gz
Algorithm Hash digest
SHA256 119663232bac338a8562508a85a378f3f32cddf702f9104b93ef84f21f274b27
MD5 df5f9bcfc37393cd87938c8c8ad2cc76
BLAKE2b-256 6e376439da182dbe524c920f81a88ea66e8b4bed2bb83a69424c66c45404261f

See more details on using hashes here.

Supported by

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