Skip to main content

A short description of the project

Project description

Edges Eraser

PyPI PyPI - Python Version PyPI - License

Coookiecutter - Wolt


Documentation: https://devmessias.github.io/edgeseraser

Source Code: https://github.com/devmessias/edgeseraser

PyPI: 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

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 graphs3
[Pólya-Urn] Filters edges with Pólya-Urn method. Paper:5 Directed, Undirected, Integer Weighted

Installation

pip install edgeseraser

Development

  • Clone/Fork this repository
git clone https://github.com/devmessias/edgeseraser
  • Requirements:
make install
make init

Testing

make test

To run the static analysis, use the following command:

make mypy

Documentation

The documentation is automatically generated from the content of the docs directory and from the docstrings of the public signatures of the source code. The documentation is updated and published as a Github project page automatically as part each release.

To see the current state of the documentation in your browser, use the following command:

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:

make pre-commit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edgeseraser-0.4.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

edgeseraser-0.4.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file edgeseraser-0.4.1.tar.gz.

File metadata

  • Download URL: edgeseraser-0.4.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.11.0-1028-azure

File hashes

Hashes for edgeseraser-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a7ac311210fead9b586cd3ebe7e6a9915b2355904f4bc9b3b399a07795c1b748
MD5 f13ba3261d16bdb4b1399d6c97f7f68b
BLAKE2b-256 9a621c1b575e4a8b4ae427adb83f00e2bd6f168f60886aef79d7118db18ceadf

See more details on using hashes here.

File details

Details for the file edgeseraser-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: edgeseraser-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.11.0-1028-azure

File hashes

Hashes for edgeseraser-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e55a4a5f9589a9f5359c5cc085153f98412360601155db6ecf5b005d466ac774
MD5 e7da6a569a8bc788d55cc6f1b1504136
BLAKE2b-256 0326d5bc062f0722e4c89a18d1c5fb260930f53aeb83d1d77d74c9dd8bd1a777

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