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

File metadata

  • Download URL: similarity_index_of_label_graph-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 43a4ec26ed5c0174627cd6cf3769402d192dfc50f398ad469a86a49d54271b98
MD5 046dec73fe472e35983df09a53b42967
BLAKE2b-256 07d52c8322baec2aaab073811cae2a7a1b2e8b5df5046780787f58a5b9bb4303

See more details on using hashes here.

File details

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

File metadata

  • Download URL: similarity_index_of_label_graph-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a4163579c10e2b301a01bb2931ee2d9f5e18e1bfce3181cbb226a055fd747b6
MD5 467fabed393e7be1e4511bd2590cb236
BLAKE2b-256 1a27cb948f457c63b443348d2f1d354e8ef9ad6e40c4357e85d4ecd2ea5a38b2

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