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

File metadata

  • Download URL: similarity_index_of_label_graph-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 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.0.tar.gz
Algorithm Hash digest
SHA256 0aec18489c06cad5a39fa70e9da5d717d629944ff469b9f7b5cf4d3a9bc911b4
MD5 5bc35787106df60f7435abaed972c229
BLAKE2b-256 de785713ec33ae4d797fef41f5cee4eb06dcf72a83d98f7f2f80f5d2dcebba35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: similarity_index_of_label_graph-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c745a7e1a03b24a687d88793ed34cad99fba83608d96ba35024f7770bcb51ab8
MD5 b476e9dc03958b174b21c2902ccede5b
BLAKE2b-256 f0fbd9fde7da0d50647e6540c43e91433c52db7d2bed2b976247ce47c024aea3

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