Skip to main content

A small class to create Gabriel Graphs

Project description

GabrielGraph

License MIT PyPI Python Version tests codecov

A small class to create Gabriel Graphs


Installation

You can install GabrielGraph via pip:

pip install GabrielGraph

To install latest development version :

pip install git+https://github.com/GuignardLab/GabrielGraph.git

Tyical use

from gabrielgraph import build_gabriel_graph
import numpy as np

np.random.seed(0)
point_ids = np.arange(10)
point_positions = np.random.random((10, 3))

gg = build_gabriel_graph(point_ids, point_positions)

gg[0] # {1, 2, 3, 6, 7, 9}

gg = build_gabriel_graph(point_ids, point_positions, "adj-mat") # coo sparse array
gg = gg.todok()  # to convert to dictionary of keys sparse array
gg[0, 1] # True
gg[0, 4] # False

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "GabrielGraph" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.


This library was generated using Cookiecutter and a custom made template based on @napari's cookiecutter-napari-plugin template.

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

gabrielgraph-0.0.6.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

gabrielgraph-0.0.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gabrielgraph-0.0.6.tar.gz.

File metadata

  • Download URL: gabrielgraph-0.0.6.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for gabrielgraph-0.0.6.tar.gz
Algorithm Hash digest
SHA256 19efdbc5909f44ce4f2d6e6552e48d6efb2073f72949e1ca18ef87e4644183a3
MD5 76c8fbb5332ddaba27819aeee959d366
BLAKE2b-256 07c537839cc938424551be2b4dd39039fc2c285a0c32279dcc072b778d670720

See more details on using hashes here.

File details

Details for the file gabrielgraph-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: gabrielgraph-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for gabrielgraph-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d3422336dafd6c15278e120fdd119bb308f0571dce76c0a551a2594654106c92
MD5 39c3035f362c39c00e573123bd98152e
BLAKE2b-256 41a29b85e66ccbed675e5dcc8d352e3fe1a8e5e11180949702d1467d7bf0aea8

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