Skip to main content

Binder Open In Colab Downloads License CodeFactor Azure

GeneralisedFormanRicci

This code computes the Forman Ricci Curvature for simplicial complex generated from a given point cloud data. The implementation is based on the combinatorial definition of Forman Ricci curvature defined by Robin Forman. This implementation generalises beyond the simplified version implemented in saibalmars/GraphRicciCurvature github.

Many thanks to stephenhky and saibalmars for their packages MoguTDA and GraphRicciCurvature respectively. Partial code was modified from MoguTDA for the computation of the boundary matrices.

Installation via conda-forge

Anaconda-Server Badge Conda (channel only) Conda Conda

Installing generalisedformanricci from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, generalisedformanricci can be installed with:

conda install generalisedformanricci

It is possible to list all of the versions of generalisedformanricci available on your platform with:

conda search generalisedformanricci --channel conda-forge

Alternatively, generalisedformanricci can be installed just by conda install -c conda-forge generalisedformanricci.

Installation via pip

PyPI PyPI - Downloads

pip install GeneralisedFormanRicci

Upgrading via pip install --upgrade GeneralisedFormanRicci

Package Requirement

Simple Example

from GeneralisedFormanRicci.frc import GeneralisedFormanRicci

data = [[0.8, 2.6], [0.2, 1.0], [0.9, 0.5], [2.7, 1.8], [1.7, 0.5], [2.5, 2.5], [2.4, 1.0], [0.6, 0.9], [0.4, 2.2]]
for f in [0, 0.5, 1, 2, 3]:
    sc = GeneralisedFormanRicci(data, method = "rips", epsilon = f)
    sc.compute_forman()
    sc.compute_bochner()

References

Cite

If you use this code in your research, please considering cite our paper:

Release files for GeneralisedFormanRicci 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GeneralisedFormanRicci 0.3
File Size Uploaded
GeneralisedFormanRicci-0.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for GeneralisedFormanRicci 0.3
File Interpreter ABI Platform
GeneralisedFormanRicci-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / GeneralisedFormanRicci-0.3.tar.gz

Download URL GeneralisedFormanRicci-0.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bbb5899beaa6f0cea1f0b859cdc217604cdce57fb662eedcc516bbf59ba25b12
BLAKE2b-256 checksum
How to use checksums
25001f8ce6a6e2732e1050a47310196bb4b5abae08b66a111f16bdbaa29656a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200704 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

Release files / GeneralisedFormanRicci-0.3-py3-none-any.whl

Download URL GeneralisedFormanRicci-0.3-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eadc17bbbcdcf0d8ed1c3719272217f740ba070effb210957c0f053dc7b725a
BLAKE2b-256 checksum
How to use checksums
17bba2a3fc71f55b25d9ba8ad5d3e7ae19f695db8df21737bdb03df0bded8343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200704 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

0.1

2 release files

0.0.9

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page