Skip to main content

Analyze Data with Pandas-based Networks.

Project description

Anaconda Version Anaconda Downloads Documentation PyPi

DeepGraph

DeepGraph is a scalable, general-purpose data analysis package. It implements a network representation based on pandas DataFrames and provides methods to construct, partition and plot networks, to interface with popular network packages and more.

It is based on a new network representation introduced here. DeepGraph is also capable of representing multilayer networks.

Main Features

This network package is targeted specifically towards Pandas users. Utilizing one of Pandas’ primary data structures, the DataFrame, we represent the (super)nodes of a graph by one set of tables, and their pairwise relations (i.e. the (super)edges of a graph) by another set of tables. DeepGraph’s main features are

  • Create edges: Methods that enable an iterative, yet vectorized computation of pairwise relations (edges) between nodes using arbitrary, user-defined functions on the nodes’ properties. The methods provide arguments to parallelize the computation and control memory consumption, making them suitable for very large data-sets and adjustable to whatever hardware you have at hand (from netbooks to cluster architectures).

  • Partition nodes, edges or a graph: Methods to partition nodes, edges or a graph by the graph’s properties and labels, enabling the aggregation, computation and allocation of information on and between arbitrary groups of nodes. These methods also let you express elaborate queries on the information contained in a deep graph.

  • Interfaces to other packages: Methods to convert to common network representations and graph objects of popular Python network packages (e.g., SciPy sparse matrices, NetworkX graphs, graph-tool graphs).

  • Plotting: A number of useful plotting methods for networks, including drawings on geographical map projections.

Quick Start

DeepGraph can be installed via pip from PyPI

$ pip install deepgraph

or if you’re using Conda, install with

$ conda install -c conda-forge deepgraph

Then, import and get started with:

>>> import deepgraph as dg
>>> help(dg)

Documentation

The official documentation is hosted here: http://deepgraph.readthedocs.io

The documentation provides a good starting point for learning how to use the library. Expect the docs to continue to expand as time goes on.

Development

So far the package has only been developed by me, a fact that I would like to change very much. So if you feel like contributing in any way, shape or form, please feel free to contact me, report bugs, create pull requestes, milestones, etc. You can contact me via email: dominik.traxl@posteo.org

Bug Reports

To search for bugs or report them, please use the bug tracker: https://github.com/deepgraph/deepgraph/issues

Citing DeepGraph

Please acknowledge the authors and cite the use of this software when results are used in publications or published elsewhere. Various citation formats are available here: https://aip.scitation.org/action/showCitFormats?type=show&doi=10.1063%2F1.4952963 For your convenience, you can find the BibTex entry below:

@Article{traxl-2016-deep,
    author      = {Dominik Traxl AND Niklas Boers AND J\"urgen Kurths},
    title       = {Deep Graphs - A general framework to represent and analyze
                   heterogeneous complex systems across scales},
    journal     = {Chaos},
    year        = {2016},
    volume      = {26},
    number      = {6},
    eid         = {065303},
    doi         = {http://dx.doi.org/10.1063/1.4952963},
    eprinttype  = {arxiv},
    eprintclass = {physics.data-an, cs.SI, physics.ao-ph, physics.soc-ph},
    eprint      = {http://arxiv.org/abs/1604.00971v1},
    version     = {1},
    date        = {2016-04-04},
    url         = {http://arxiv.org/abs/1604.00971v1}
}

Licence

Distributed with a BSD license:

Copyright (C) 2017-2020 DeepGraph Developers
Dominik Traxl <dominik.traxl@posteo.org>

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

DeepGraph-0.2.4.tar.gz (183.9 kB view hashes)

Uploaded Source

Built Distributions

DeepGraph-0.2.4-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (250.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (250.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (249.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (249.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp312-cp312-win_amd64.whl (252.6 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

DeepGraph-0.2.4-cp312-cp312-win32.whl (246.7 kB view hashes)

Uploaded CPython 3.12 Windows x86

DeepGraph-0.2.4-cp312-cp312-musllinux_1_1_x86_64.whl (576.8 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

DeepGraph-0.2.4-cp312-cp312-musllinux_1_1_i686.whl (558.2 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

DeepGraph-0.2.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (568.0 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (551.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp312-cp312-macosx_10_9_x86_64.whl (250.6 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

DeepGraph-0.2.4-cp311-cp311-win_amd64.whl (253.7 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

DeepGraph-0.2.4-cp311-cp311-win32.whl (247.7 kB view hashes)

Uploaded CPython 3.11 Windows x86

DeepGraph-0.2.4-cp311-cp311-musllinux_1_1_x86_64.whl (529.0 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

DeepGraph-0.2.4-cp311-cp311-musllinux_1_1_i686.whl (519.1 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

DeepGraph-0.2.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (525.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (513.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp311-cp311-macosx_10_9_x86_64.whl (250.9 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

DeepGraph-0.2.4-cp310-cp310-win_amd64.whl (253.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

DeepGraph-0.2.4-cp310-cp310-win32.whl (247.9 kB view hashes)

Uploaded CPython 3.10 Windows x86

DeepGraph-0.2.4-cp310-cp310-musllinux_1_1_x86_64.whl (508.7 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

DeepGraph-0.2.4-cp310-cp310-musllinux_1_1_i686.whl (502.3 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

DeepGraph-0.2.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (500.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (492.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp310-cp310-macosx_10_9_x86_64.whl (251.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

DeepGraph-0.2.4-cp39-cp39-win_amd64.whl (251.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

DeepGraph-0.2.4-cp39-cp39-win32.whl (246.4 kB view hashes)

Uploaded CPython 3.9 Windows x86

DeepGraph-0.2.4-cp39-cp39-musllinux_1_1_x86_64.whl (506.3 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

DeepGraph-0.2.4-cp39-cp39-musllinux_1_1_i686.whl (499.9 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

DeepGraph-0.2.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (497.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (490.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp39-cp39-macosx_10_9_x86_64.whl (249.8 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

DeepGraph-0.2.4-cp38-cp38-win_amd64.whl (253.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

DeepGraph-0.2.4-cp38-cp38-win32.whl (247.9 kB view hashes)

Uploaded CPython 3.8 Windows x86

DeepGraph-0.2.4-cp38-cp38-musllinux_1_1_x86_64.whl (513.1 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

DeepGraph-0.2.4-cp38-cp38-musllinux_1_1_i686.whl (510.4 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

DeepGraph-0.2.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (498.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (494.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp38-cp38-macosx_10_9_x86_64.whl (251.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

DeepGraph-0.2.4-cp37-cp37m-win_amd64.whl (253.8 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

DeepGraph-0.2.4-cp37-cp37m-win32.whl (247.7 kB view hashes)

Uploaded CPython 3.7m Windows x86

DeepGraph-0.2.4-cp37-cp37m-musllinux_1_1_x86_64.whl (490.0 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

DeepGraph-0.2.4-cp37-cp37m-musllinux_1_1_i686.whl (485.5 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

DeepGraph-0.2.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (483.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (477.2 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp37-cp37m-macosx_10_9_x86_64.whl (251.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

DeepGraph-0.2.4-cp36-cp36m-win_amd64.whl (261.8 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

DeepGraph-0.2.4-cp36-cp36m-win32.whl (251.9 kB view hashes)

Uploaded CPython 3.6m Windows x86

DeepGraph-0.2.4-cp36-cp36m-musllinux_1_1_x86_64.whl (455.2 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

DeepGraph-0.2.4-cp36-cp36m-musllinux_1_1_i686.whl (453.0 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ i686

DeepGraph-0.2.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (447.6 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

DeepGraph-0.2.4-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (440.9 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

DeepGraph-0.2.4-cp36-cp36m-macosx_10_9_x86_64.whl (247.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

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