Skip to main content

calculate the similarity index of the label graph pairs package in python.

Project description

similarity_index_of_label_graph

PyPI PyPI - Status GitHub Release Date Build Status Code Intelligence Status Language grade: Python Codacy Badge Scrutinizer Code Quality PyPI - Downloads PyPI - Python Version PyPI - License

calculate the similarity index of the label graph pairs package in python.

Can be used for weighted/unweighted and directed/undirected networks.

Installation

Installation can be done through pip. You must have python version >= 3.7

pip install similarity-index-of-label-graph

Usage

The statement to import the package:

from similarity_index_of_label_graph_package import similarity_index_of_label_graph_class

Example:

>>> from networkx.generators.directed import gnr_graph
>>> from networkx.generators import spectral_graph_forge
>>> G1 = gnr_graph(100, 0.3, seed = 65535)
>>> G2 = gnr_graph(100, 0.3, seed = 1)
>>> G3 = spectral_graph_forge(G1, 0.6, seed = 65535)
>>> G4 = spectral_graph_forge(G2, 0.6, seed = 65535)
>>> similarity_index_of_label_graph = similarity_index_of_label_graph_class()
>>> similarity_index_of_label_graph(G1, G2)
0.5925135061949895
>>> similarity_index_of_label_graph(G1, G3)
-0.9677390108526409
>>> similarity_index_of_label_graph(G2, G4)
-0.9041961423870752
>>> similarity_index_of_label_graph(G3, G4)
0.5359512772554542

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

Built Distribution

File details

Details for the file similarity_index_of_label_graph-1.0.2.tar.gz.

File metadata

  • Download URL: similarity_index_of_label_graph-1.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for similarity_index_of_label_graph-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1758a6b75300d76c53d124da527cbe39b3cda934ff00aa8caed0af2a7df51def
MD5 e60e710132cf6bf5c9e78ecd74ce112b
BLAKE2b-256 d0295754430a65848046715cede458fe6d1fa5a16b38257cb063d57026aaac0b

See more details on using hashes here.

File details

Details for the file similarity_index_of_label_graph-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: similarity_index_of_label_graph-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for similarity_index_of_label_graph-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef3c0840bc8dbf8224da3dbdc9b3c45e47698c40e58a1b720ea37374fa39deaf
MD5 d1e32bcb3d132606a2eac0b9dd924891
BLAKE2b-256 af5126f7af8b6fd1605047b4987a2c7683945284826eb333f618158c83471c05

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