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()

# add_node(attr) stores an integer attribute and returns the new node's id
a = g.add_node(10)
b = g.add_node(20)
c = g.add_node(30)

# add_edge(source, target, weight) connects two nodes by their ids
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.3.0-cp310-abi3-win_amd64.whl (810.7 kB view details)

Uploaded CPython 3.10+Windows x86-64

pygraphina-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (851.6 kB view details)

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

pygraphina-0.3.0-cp310-abi3-macosx_11_0_arm64.whl (781.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pygraphina-0.3.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 810.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.3.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 13b2ce4b3da08411a8c9bc3b91729d7742bba62563ea801fa506a57852042139
MD5 5ec9593231729f00490b10b6b69e43c7
BLAKE2b-256 bb0690fc2cde9270cb7f93aa0947ddfd2b3e8bde7e7a5f80abc1ca0faa85d72d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygraphina-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77a27e78c923eaaf2d46e0bf6675d6ff1d3c6663ae3b744b4cfd714cf4057ca0
MD5 4e2a9b5a73365c3e504f0d505fdffd7f
BLAKE2b-256 eaf4391def08622596a19155588073f945c4873f26247d73a6cd460b62898a0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygraphina-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f2ad8ad36e61a09143a985b0ab7b787028b8fe84e57d4f93b7714937ed0da05
MD5 87b78e65a8db3a8a5afa6b2bf104b652
BLAKE2b-256 536e8958973c0a2bde84e1cb2a8dfe067d24dde68392fc545a3d1df7e5695270

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