Skip to main content

Python bindings for the Graphina library

Project description

PyGraphina

Python version PyPI version Documentation License: MIT

PyGraphina provides Python bindings for Graphina.

Installation

pip install pygraphina

Quickstart

import pygraphina as pg

# Create a graph
g = pg.PyGraph()
a, b, c = [g.add_node(i) for i in range(3)]
g.add_edge(a, b, 1.0)
g.add_edge(b, c, 1.0)

# Calculate PageRank
pr = pg.centrality.pagerank(g, 0.85, 100, 1e-6)

# Find largest clique size
size = pg.approximation.large_clique_size(g)

# Find connected components
comps = pg.community.connected_components(g)

# Compute Jaccard coefficients
jc = pg.links.jaccard_coefficient(g)

print(f"PageRank: {pr}")
print(f"Clique size: {size}")
print(f"Connected components: {comps}")
print(f"Jaccard coefficients: {jc}")

Documentation

Visit PyGraphina's documentation page for detailed information including examples and API references.

License

PyGraphina is licensed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pygraphina-0.2.3-cp310-abi3-win_amd64.whl (814.7 kB view details)

Uploaded CPython 3.10+Windows x86-64

pygraphina-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (854.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

pygraphina-0.2.3-cp310-abi3-macosx_11_0_arm64.whl (783.7 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file pygraphina-0.2.3-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: pygraphina-0.2.3-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 814.7 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for pygraphina-0.2.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c399a9b32b504a0bace9e916b9e3054802349be9dbbece2357a7ab8844e76792
MD5 44b63626dddedd75910c81b06d0361d1
BLAKE2b-256 986e409b55b21f194c03cae72d66f40e7712c0eba9d5184a8f9b0d696a2dc6cc

See more details on using hashes here.

File details

Details for the file pygraphina-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygraphina-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a9e9fc1205e1c56ca3443c9eea263f985c42784b2fdbf9705353bd9c9e0aaabc
MD5 1f6ca38a1fcdc52c4a4972bccc996109
BLAKE2b-256 af75e88278e695e01dde8f3fd7898c5deb5601d587210ec3c65947b4f08b25d0

See more details on using hashes here.

File details

Details for the file pygraphina-0.2.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pygraphina-0.2.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1f6f06964ed0bd8248fbf7cc71658ae6a48bf33fcdb7d510c328a230162b792
MD5 b3bf670149421b7c39f4c0efd3ce311d
BLAKE2b-256 46dc6e08491d12fc3aaea00c559de9b04690c347d218616a33e9c3813a6d2b58

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