calculate the similarity index of the label graph pairs package in python.
Project description
similarity_index_of_label_graph
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.7651719671571124
>>> similarity_index_of_label_graph(G1, G3)
-0.8580896120374933
>>> similarity_index_of_label_graph(G2, G4)
-0.8440113193737153
>>> similarity_index_of_label_graph(G3, G4)
0.7314483604914666
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file similarity_index_of_label_graph-2.0.1.tar.gz.
File metadata
- Download URL: similarity_index_of_label_graph-2.0.1.tar.gz
- Upload date:
- Size: 4.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4256cb38e347c4f122b8800f190936b179f911e25bd1422826b9c03d5f049199
|
|
| MD5 |
4edbb20a3ef9835c3befc9431738a5fc
|
|
| BLAKE2b-256 |
ca130816c1b93b07183c950d9d969e6cc383108405e6bbd9388e143043695bb6
|
File details
Details for the file similarity_index_of_label_graph-2.0.1-py3-none-any.whl.
File metadata
- Download URL: similarity_index_of_label_graph-2.0.1-py3-none-any.whl
- Upload date:
- Size: 17.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8b09f781570ba61a6613cf58d6dcfabd8a8e77e797f39315b8e1aaa95e0693b
|
|
| MD5 |
1f51399f71e9d25ebdb0fa3537d4441e
|
|
| BLAKE2b-256 |
f767871110610162342eb26b0d0322f702374c2517fb81b6ecc53f1b82a16a06
|