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.

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

Uploaded CPython 3.10+Windows x86-64

pygraphina-0.3.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (868.4 kB view details)

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

pygraphina-0.3.4-cp310-abi3-macosx_11_0_arm64.whl (790.9 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pygraphina-0.3.4-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 823.1 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.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c222ae8740c5be8462ccbdee6dcf453f590781f9c9e2f482ae8f569f76a34b90
MD5 f0a317e9f8f3bf0f0b022804b96e30cf
BLAKE2b-256 6a9cc72207b70f58bb53f6f381e47e1b1611686f732bf5f145b20d62d5e4aec0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygraphina-0.3.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5c2ced1ad7132128f7de9598385c0a622b5d9933189e9ad69d2af9f64b41a94a
MD5 b17ee855587c35db74d1d7e9bc5d8f76
BLAKE2b-256 0292ec0e6e082301bdefb6b0cba13cfe68c156d9d1e126dc8be05fecf6b3057e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygraphina-0.3.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0189cb2586cf1614588507382a8cacbe1375f513488a252dacf45782ef59f15f
MD5 1481c4aa802bfb06ce6129831f102cec
BLAKE2b-256 b9a105f327d0e80482e8680371186a1d9ae725f781938ffd35f2dd71ba2e09a2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.4 This release

3 files

0.3.3

3 files

0.3.2

3 files

0.3.1

3 files

0.3.0

3 files

0.2.3

3 files

0.2.2

3 files

0.2.1

1 file

0.2.0

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page