Skip to main content

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.

Metadata

Release files for pygraphina 0.3.5

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

Built distributions (wheels)

Table of built distributions (wheels) for pygraphina 0.3.5
File Interpreter ABI Platform
pygraphina-0.3.5-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pygraphina-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
pygraphina-0.3.5-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 2.5 MB

Release files / pygraphina-0.3.5-cp310-abi3-win_amd64.whl

Download URL pygraphina-0.3.5-cp310-abi3-win_amd64.whl
Size 835.1 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
95bb1b8627a13b4f624d2dba8e2573b83f31374b1bfc33ef8181a0d653f08b52
BLAKE2b-256 checksum
How to use checksums
53e3c90fe61510f34a5adf1ed0ce6532598618b9ee445e6fd895124d531c34ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / pygraphina-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pygraphina-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 876.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
745a488d835eb4bbbcd586fc9bab0ef406b06d03129fc788b9bd2e84addd74ac
BLAKE2b-256 checksum
How to use checksums
c82ee9228bd23aa618aca6006c1945f286d8be19bf81178039288914fdf954e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / pygraphina-0.3.5-cp310-abi3-macosx_11_0_arm64.whl

Download URL pygraphina-0.3.5-cp310-abi3-macosx_11_0_arm64.whl
Size 796.6 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5bfa665b8c5a95cb89c26a9f72f76c293ace4981203d12e40b18fbed11c72956
BLAKE2b-256 checksum
How to use checksums
a99f9b66f95b1decb6665bc8406de772c13234524200781be47262f00463b73b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21
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