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)

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 Distribution

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

pygraphina-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (840.9 kB view details)

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

File details

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

File metadata

File hashes

Hashes for pygraphina-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8f387bd161a382194bb5543a27201dfae01f02ae6516e0dc90b210505275e07a
MD5 a486a7d53611096802763d0f92197c2d
BLAKE2b-256 8cba0d5883e8939d4a5002abdc338fb7f6e3cca5f443ef16bffb1c263b3e80e7

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