Community detection using attribute and structural similarities.
Installation:
pip install community_detect
Dependencies:
NetworkX
Matplotlib
Usage:
Import:
from community_detect import Community
Initialize:
com = Community(alpha_weight = 0.5) #You can add your own value for Alpha
Functions:
Main method: get_communities(Graph, #Your Graph
Vertices, #List of Vertices
Similarity Matrix, #Similarity matrix for attribute similarities (It should be a N X N matrix where N is the number of vertices
Similarity Matrix Type #Types : cosine, euclidean etc
)
Returns a dictionary with each key containing all the nodes in that community
To View Communities : view_communities(Communities, #Output of above function
Graph, #Your Graph
Vertices, #List of Vertices
Similarity Matrix, #Similarity matrix for attribute similarities (It should be a N X N matrix where N is the number of vertices
Similarity Matrix Type #Types : cosine, euclidean etc
)
Metadata
Release files for community_detect 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| community_detect-1.0.0.zip | 4.7 kB | Without provenance | Details for community_detect-1.0.0.zip |
Release files / community_detect-1.0.0.zip
| Download URL | community_detect-1.0.0.zip |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f03e01a0375b55e8041e1f0624801d5e64063a5f541ae8b56e47d5dd3d39fd17
|
|
BLAKE2b-256 checksum How to use checksums |
57c9eab7d6c58c263ab4234b51ce7e2a6bc2836ece7152a839f28828c9d40c80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for community_detect 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.