Metadata-Version: 2.1
Name: shuffle-graph
Version: 1.1.2
Summary: Graph shuffling package in python.
Home-page: https://github.com/fsssosei/shuffle_graph
Author: sosei
Author-email: fss.sosei@gmail.com
License: GNU Affero General Public License v3
Keywords: Graph,Shuffle
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: networkx (>=2.4)

# shuffle_graph

![PyPI](https://img.shields.io/pypi/v/shuffle_graph?color=red)
![PyPI - Status](https://img.shields.io/pypi/status/shuffle_graph)
![GitHub Release Date](https://img.shields.io/github/release-date/fsssosei/shuffle_graph)
[![Build Status](https://scrutinizer-ci.com/g/fsssosei/shuffle_graph/badges/build.png?b=master)](https://scrutinizer-ci.com/g/fsssosei/shuffle_graph/build-status/master)
[![Code Intelligence Status](https://scrutinizer-ci.com/g/fsssosei/shuffle_graph/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/fsssosei/shuffle_graph.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/fsssosei/shuffle_graph/context:python)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/eee9f9c7d45a49808774f88351942b7b)](https://www.codacy.com/manual/fsssosei/shuffle_graph?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=fsssosei/shuffle_graph&amp;utm_campaign=Badge_Grade)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fsssosei/shuffle_graph/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fsssosei/shuffle_graph/?branch=master)
![PyPI - Downloads](https://img.shields.io/pypi/dw/shuffle_graph?label=PyPI%20-%20Downloads)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/shuffle_graph)
![PyPI - License](https://img.shields.io/pypi/l/shuffle_graph)

*Graph shuffling package in python.*

## Installation

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

	pip install shuffle-graph

## Usage

The statement to import the package:

	from shuffle_graph_package import *

Example:

	>>> calculate_number_of_shuffles_required_under_default_random_function(10000)
	6

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


