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.

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-0.9.9.tar.gz.

File metadata

  • Download URL: similarity_index_of_label_graph-0.9.9.tar.gz
  • Upload date:
  • Size: 4.4 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-0.9.9.tar.gz
Algorithm Hash digest
SHA256 e8f7468302697d4fccc62f0d7bf0538e896dd55f6ad3d3b461afbcaecc29eb50
MD5 ba00bf99b8da61536279020ec175e335
BLAKE2b-256 d48c0e6da402b755484a12d1ba4ed209852e2e29dd6af191eb0f0eb5872eaf1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: similarity_index_of_label_graph-0.9.9-py3-none-any.whl
  • Upload date:
  • Size: 17.6 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-0.9.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6e4dae1da2e8e9ee0a98fea7f310374efa4970957946e394216c390ebbd7022b
MD5 47a32c960bb95d899d03495d817335e0
BLAKE2b-256 4afc3d6f5ad05992823088d9a33446f89a98d2258e09e7b527e7189a65b8ed56

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