Skip to main content

A utility package for data science

Project description

Introduction

Data tools to increase productivity in your workflow

How to setup

Install with pip:

pip install core_graph

Metrics in community finding:

1. Modularity

Modularity measures the strength of division of a network into communities. It compares the density of connections inside communities to the density of connections between communities.

Modularity values typically range from -1 to 1:

  • Positive values indicate more edges within communities than would be expected by random chance.
  • Negative values indicate fewer edges within communities than expected by random chance.

In practice, modularity values for real networks with good community structure often fall in the range of 0.3 to 0.7.

Using Modularity for Comparison:

  • Higher modularity generally indicates a better community structure.
  • You can compare the modularity scores of different community detection algorithms on the same network.
  • The algorithm that produces the highest modularity score is often considered to have found the best community structure.

2. Codelength

Codelength is a central concept in Infomap's approach to community detection.

It's based on the principle of data compression and information theory:

  • Codelength represents the average number of bits needed to describe a random walk on the network.
  • A lower codelength indicates a better partition of the network into communities.
  • Infomap aims to minimize this codelength, which corresponds to finding the best community structure.

The codelength consists of two parts:

  • The description length of movements between modules
  • The description length of movements within modules

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

core_graph-0.0.6.tar.gz (6.5 MB view details)

Uploaded Source

Built Distribution

core_graph-0.0.6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file core_graph-0.0.6.tar.gz.

File metadata

  • Download URL: core_graph-0.0.6.tar.gz
  • Upload date:
  • Size: 6.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.5

File hashes

Hashes for core_graph-0.0.6.tar.gz
Algorithm Hash digest
SHA256 dac7599eaf699cee0d61b1c8fdc7a714071dcbad5be8d144330fd4a0aac6ca74
MD5 64377525aaf3bd4ac642b6f74cf845ba
BLAKE2b-256 660a7c769fd93410b4f4379049da69cc0eda69e2822d756105547738a0723793

See more details on using hashes here.

File details

Details for the file core_graph-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: core_graph-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.5

File hashes

Hashes for core_graph-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 35631c4e66a6c9c39a9338c677bf46221e16bce04990d965c57c0a3103358ddb
MD5 6e8aaab1a8fbc16db225bcb48e533a87
BLAKE2b-256 f2eeb4bc2d5e264506e3d36e54809893c346249736fcab8c6e7de92c56d93959

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page