Skip to main content

Advanced NetworkX graph generation models implementing algorithms from mathematical papers.

Project description

NetworkX Arxiv Generators CI

Advanced graph generation models for NetworkX, implementing algorithms from mathematical literature (with arxiv citations), and published in reputable peer-reviewed journals, or presented at established conferences, symposiums and seminars.

Current state

Currently the project is in a scaffolding state, with the first goal of generating uniform power law graphs as in Uniform generation of random graphs with power-law degree sequences. These results were presented at SODA '18: Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms .

To begin, require results from the seminal paper B.D. McKay and N.C. Wormald, Uniform generation of random regular graphs of moderate degree, J. Algorithms 11 (1990), 52–67.

Currently in progress, located in src/nx_arxivgen/generators/mckay_wormald.py .

Install

Once published:

pip install networkx-arxiv-generators

Quickstart

import networkx as nx
import matplotlib.pyplot as plt
from nx_arxivgen.generators.mckay_wormald import mckay_wormald_simple_graph, mckay_graph_encoding

test_deg_seq = [1, 1, 2, 3, 3, 2, 6, 6,7,8,6,1,2,3,4,5,6,7,8,9,10]

test = mckay_wormald_simple_graph(test_deg_seq, debug=True)
nx.draw_spring(test, with_labels=True)
plt.show()

sample_graph = nx.generators.binomial_graph(20, 0.5)

print(mckay_graph_encoding(sample_graph))

Goals

  • Faithful implementations of arxiv models with clear citations, existing in reputable publications.
  • Deterministic seeding and reproducibility, wherever relevant by the context of the research paper.
  • Tests, docs, and examples for each model.

Citing

If you use this package, please cite it. See CITATION.cff. Each model’s docstring cites its originating paper(s).

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

networkx_arxiv_generators-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

networkx_arxiv_generators-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file networkx_arxiv_generators-0.1.0.tar.gz.

File metadata

File hashes

Hashes for networkx_arxiv_generators-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3917a088dd6e7d0c532f8b4e8cbb11d2a045346b93255e1d2d0a8691ee91c858
MD5 2c26ea4822528a3559df0d3c132a449f
BLAKE2b-256 dc3a936fd1177db6eeacdbd50c58d24b2253b41351d3fd5ca376184f5a80d15e

See more details on using hashes here.

File details

Details for the file networkx_arxiv_generators-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for networkx_arxiv_generators-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f4cbfcf8ceada296933095c35774283a3804d9203dc32d2efef723fa25ad40a
MD5 48f83fad4622f0ce9858157f93e59900
BLAKE2b-256 d6d09e591da7e053edb300b1c43a028dc399ca47add2b1919e4900c919e7403a

See more details on using hashes here.

Supported by

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