edgeseraser-0.6.0
توضیحات
A short description of the project
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | edgeseraser-0.6.0 |
| نام | edgeseraser |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bruno Messias |
| ایمیل نویسنده | devmessias@gmail.com |
| آدرس صفحه اصلی | https://devmessias.github.io/edgeseraser |
| آدرس اینترنتی | https://pypi.org/project/edgeseraser/ |
| مجوز | MIT |
# Edges Eraser
[](https://pypi.python.org/pypi/edgeseraser/)
[](https://pypi.python.org/pypi/edgeseraser/)
[](https://pypi.python.org/pypi/edgeseraser/)
[](https://github.com/woltapp/wolt-python-package-cookiecutter)
---
**Documentation**: [https://devmessias.github.io/edgeseraser](https://devmessias.github.io/edgeseraser)
**Source Code**: [https://github.com/devmessias/edgeseraser](https://github.com/devmessias/edgeseraser)
**PyPI**: [https://pypi.org/project/edgeseraser/](https://pypi.org/project/edgeseraser/)
---
## What is Edges Eraser?
This pkg aims to implement serveral filtering methods for (un)directed graphs.
Edge filtering methods allows to extract the backbone of a graph or sampling the most important edges. You can use edge filtering methods as a preprocessing step aiming to improve the performance/results of graph algorithms or to turn a graph visualtzation more asthetic.
## Example
```python
import networkx as nx
import edgeseraser as ee
g = nx.erdos_renyi_graph(100, 0.1)
ee.noise_score.filter_nx_graph(g)
g # filtered graph
```
## Available methods and details
| Method | Description | suitable for | limitations/restrictions/details |
| --- | --- |--- | --- |
| [Noise Score] | Filters edges with high noise score. Paper:[1]|Directed, Undirected, Weighted | Very good and fast! [4] |
| [Disparity] | Dirichlet process filter (stick-breaking) Paper:[2] | Directed, Undirected, Weighted |There are some criticism regarding the use in undirected graphs[3]|
| [Pólya-Urn]| Filters edges with Pólya-Urn method. Paper:[5]| Directed, Undirected, Integer Weighted||
[1]: https://arxiv.org/abs/1701.07336
[2]: https://arxiv.org/abs/0904.
[3]: https://arxiv.org/abs/2101.00863
[4]: https://www.michelecoscia.com/?p=1236
[5]: https://www.nature.com/articles/s41467-019-08667-3
[Noise Score]: /api_docs/#edgeseraser.noise_score
[Disparity]: /api_docs/#edgeseraser.disparity
## Installation
```sh
pip install edgeseraser
```
## Development
* Clone/Fork this repository
```sh
git clone https://github.com/devmessias/edgeseraser
```
* Requirements:
* [Poetry](https://python-poetry.org/)
* Python 3.7+
```sh
make install
make init
```
### Testing
```sh
make test
```
To run the static analysis, use the following command:
```sh
make mypy
```
### Documentation
The documentation is automatically generated from the content of the [docs directory](./docs) and from the docstrings
of the public signatures of the source code. The documentation is updated and published as a [Github project page
](https://pages.github.com/) automatically as part each release.
To see the current state of the documentation in your browser, use the following command:
```sh
make docs-serve
```
The above command will start a local server on port 8000. Any changes to
the documentation and docstrings will be automatically reflected in your browser.
### Pre-commit
Pre-commit hooks run all the auto-formatters (e.g. `black`, `isort`), linters (e.g. `mypy`, `flake8`), and other quality
checks to make sure the changeset is in good shape before a commit/push happens.
If you want e.g. want to run all checks manually for all files:
```sh
make pre-commit
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | networkx |
| - | scipy |
| - | typing_extensions |
| - | igraph |
| >=0.37.0 | llvmlite |
| - | numba |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.1,<3.11 | Python |
نحوه نصب
نصب پکیج whl edgeseraser-0.6.0:
pip install edgeseraser-0.6.0.whl
نصب پکیج tar.gz edgeseraser-0.6.0:
pip install edgeseraser-0.6.0.tar.gz