Skip to main content

Renewal Non-Backtracking Random Walk (RNBRW) for community detection

Project description

RNBRW

A Python package to compute Renewal Non-Backtracking Random Walk (RNBRW) edge weights for community detection.

Features

Installation

pip install git+https://github.com/Behnaz-m/RNBRW.git

Usage

import networkx as nx
from rnbrw.weights import compute_weights
from rnbrw.community import detect_communities_louvain

# Create or load a graph
G = nx.karate_club_graph()

# Compute RNBRW weights
G = compute_weights(G, nsim=1000, n_jobs=4)

# Detect communities
partition = detect_communities_louvain(G)

Documentation

Full documentation is available at Read the Docs.

Citation

If you use this package in your research, please cite:

@article{moradi2018new,
	title={New methods for incorporating network cyclic structures to improve community detection},
	author={Moradi, Behnaz and Shakeri, Heman and Poggi-Corradini, Pietro and Higgins, Michael},
	journal={arXiv preprint arXiv:1805.07484},
	year={2018}
}

License

MIT

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

rnbrw-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

rnbrw-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file rnbrw-0.1.0.tar.gz.

File metadata

  • Download URL: rnbrw-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for rnbrw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 16e4fc94ba597d83e41035df4929cf38adf7fab7e46d7a2b841acb8ac05703c9
MD5 c5ccbf9fad9c32a4dbc773a74707ee95
BLAKE2b-256 887fb19c3346abc3663e2b0d7555e8408195e104c58aaea3862bd22a79a23b9a

See more details on using hashes here.

File details

Details for the file rnbrw-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rnbrw-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for rnbrw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54f37ea90638842c5608cf414661bc99c21188f3056b2cae7575dc0727822325
MD5 7bb68697f1c2763af1ef16dee8ad9efd
BLAKE2b-256 567cfa701ec8ee729c1bebbb408904a57b97a291dfde758a3caf1a1ac72990b6

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