Metadata-Version: 2.4
Name: pygraphina
Version: 0.2.2
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
License-File: LICENSE
Summary: Python bindings for the Graphina library
Keywords: graph-theory,data-science,graph-algorithms,graph-analytics
Author-email: Hassan Abedi <hassan.abedi.t@gmail.com>
Maintainer-email: Hassan Abedi <hassan.abedi.t@gmail.com>
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: homepage, https://github.com/habedi/graphina
Project-URL: documentation, https://github.com/habedi/graphina
Project-URL: repository, https://github.com/habedi/graphina

## PyGraphina

[![Python version](https://img.shields.io/badge/python-%3E=3.10-3776ab?style=flat&labelColor=282c34&logo=python)](https://github.com/habedi/graphina)
[![PyPI version](https://img.shields.io/pypi/v/pygraphina?style=flat&labelColor=282c34&color=3775a9&logo=pypi)](https://badge.fury.io/py/pygraphina)
[![Documentation](https://img.shields.io/badge/docs-read-00acc1?style=flat&labelColor=282c34&logo=readthedocs)](https://habedi.github.io/graphina/python)
[![License: MIT](https://img.shields.io/badge/license-MIT-0288d1?style=flat&labelColor=282c34&logo=open-source-initiative)](LICENSE)

PyGraphina provides Python bindings for [Graphina](https://github.com/habedi/graphina).

> [!IMPORTANT]
> PyGraphina is in early development, so breaking changes and bugs are expected.
> Please report bugs on [GitHub issues](https://github.com/habedi/graphina/issues).

### Installation

```bash
pip install pygraphina
```

### Quickstart

```python
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](https://habedi.github.io/graphina/python) for detailed information including examples and API references.

### License

PyGraphina is licensed under the [MIT License](LICENSE).

