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.

[!IMPORTANT] PyGraphina is in early development, so breaking changes and bugs are expected. Please report bugs on GitHub issues.

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.2-cp310-abi3-win_amd64.whl (710.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

pygraphina-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (841.1 kB view details)

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

pygraphina-0.2.2-cp310-abi3-macosx_11_0_arm64.whl (741.7 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pygraphina-0.2.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9f83e00a6c3e24c58750785b791038a23cc49a08fa1cae6bec42f2ab16eddac5
MD5 d14c8a773aabe02d73bdff71b3ea5482
BLAKE2b-256 5b27f472f380c3b440a0d90bf8fdddcb5bee291fb5ff7a98d2dbdd8b3781a208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygraphina-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41fec1f37ca590dd12f924346e0179430b48b23ebad7a3448e754d67780b0da4
MD5 ec94c50cd8488f94c97b2882d2f97f2d
BLAKE2b-256 7d599236e858e82380301077d9c693bf425a2de357c62bbc5511491baa9c7164

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygraphina-0.2.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 108b91ef378546bba2656af0e76c842334e0f9644238baaaa44210b9d272c96a
MD5 1c9de091a2cf965fbe56a64bd9d66346
BLAKE2b-256 682941fffa34e6106c9903fecc3d72639728bb937d5fdf1d5c08fc7630148b01

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