Skip to main content

Calculates ring scores for various data structures

Project description

DOI License Version

ringity is a Python package to analyze various data structures with respect to their ring structure.

🚀 Quick Examples

Ring Score of Networks

Calculate ring score as described in [1]:

import ringity as rng
import networkx as nx
G = nx.Graph()
G.add_edges_from([(i%100,(i+1)%100) for i in range(100)])
dgm = rng.pdiagram(G)   # constructs a persistence diagram from G
dgm.ring_score()        # -> 1

[1]: Paper not available yet.

Ring Score of Point Clouds

Calculate ring score as described in [2]:

import numpy as np
import ringity as rng
t = np.linspace(0, 2*np.pi, 100)
X = np.array((np.cos(t),np.sin(t))).T
rng.ring_score(X)     # -> 1

[2]: Paper not available yet.

📦 Install

Install the latest version of ringity:

$ pip install ringity

👋 Used ringity in your work?

Used ringity in a paper, preprint, thesis, talk, or project? We’d love to hear about it!

Let us know by opening an issue: https://github.com/ClusterDuck123/ringity/issues

🐞 Bugs

Please report any bugs that you find here. Or, even better, fork the repository on GitHub and create a pull request. All inputs, suggestions and changes are more than welcome!

📄 License

MIT — see LICENSE.

📚 How to cite

DOI: 10.5281/zenodo.4908926

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

ringity-0.5a0.tar.gz (26.9 MB view details)

Uploaded Source

Built Distribution

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

ringity-0.5a0-py3-none-any.whl (150.4 kB view details)

Uploaded Python 3

File details

Details for the file ringity-0.5a0.tar.gz.

File metadata

  • Download URL: ringity-0.5a0.tar.gz
  • Upload date:
  • Size: 26.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ringity-0.5a0.tar.gz
Algorithm Hash digest
SHA256 09f5a19cf04ed41c8da4d21bcdf55ed9ba7bc45d3ad1ffefae61f8bc69b57ce7
MD5 f09a40661a8d1a9114bfb281e950b920
BLAKE2b-256 7618c98e5e08ecb9528f3e243b067c2f41087b2c9ce114be646b01b8cf701a62

See more details on using hashes here.

Provenance

The following attestation bundles were made for ringity-0.5a0.tar.gz:

Publisher: release.yml on ClusterDuck123/ringity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ringity-0.5a0-py3-none-any.whl.

File metadata

  • Download URL: ringity-0.5a0-py3-none-any.whl
  • Upload date:
  • Size: 150.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ringity-0.5a0-py3-none-any.whl
Algorithm Hash digest
SHA256 57bca338fab50c2631791e557dbfdebdfa54eb14a2b9f2029430acb802e32042
MD5 39fb10d7873996799d39a921c8fa85c5
BLAKE2b-256 6a379dc32ac7ff6c2a6d3cd170e615cf2fff2059c81b0f859f2814173707d929

See more details on using hashes here.

Provenance

The following attestation bundles were made for ringity-0.5a0-py3-none-any.whl:

Publisher: release.yml on ClusterDuck123/ringity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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