Skip to main content

Graph shuffling package in python.

Project description

shuffle_graph

PyPI PyPI - Status GitHub Release Date Build Status Code Intelligence Status Language grade: Python Codacy Badge Scrutinizer Code Quality PyPI - Downloads PyPI - Python Version PyPI - License

Graph shuffling package in python.

Installation

Installation can be done through pip. You must have python version >= 3.8

pip install shuffle-graph

Usage

The statement to import the package:

from shuffle_graph_package import *

Example:

>>> from networkx.classes.graph import Graph
>>> G = Graph({0: {1: {}}, 1: {0: {}, 2: {}}, 2: {1: {}, 3: {}}, 3: {2: {}, 4: {}}, 4: {3: {}}})
>>> seed = 170141183460469231731687303715884105727
>>> shuffle_graph(G, seed).adj  #Set seed to make the results repeatable.
AdjacencyView({1: {0: {}, 2: {}}, 2: {1: {}, 3: {}}, 3: {2: {}, 4: {}}, 4: {3: {}}, 0: {1: {}}})

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

shuffle_graph-2.2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

shuffle_graph-2.2.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file shuffle_graph-2.2.0.tar.gz.

File metadata

  • Download URL: shuffle_graph-2.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for shuffle_graph-2.2.0.tar.gz
Algorithm Hash digest
SHA256 d0bd61039ac25bea40b547fa5e0f4174e643b0f5d92120127214e2c677079141
MD5 cf0fc1a3b21136a6e82a46638db54bb5
BLAKE2b-256 3c7714f358e5891a63a419be69c65411acad5c11a9efdff0ed177e377ef3b91d

See more details on using hashes here.

File details

Details for the file shuffle_graph-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: shuffle_graph-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for shuffle_graph-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64085c484ab4866987418cf761d719243e00ff4465f85f9dd629c06e270584eb
MD5 eecaddf42b07458ce8c03fa66a166428
BLAKE2b-256 cd6e9039527c7a2e40e7c3ce458e9ed38e0b92dc0cc9c99306276b11e63a38ac

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