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
Metadata
Release files for similarity-index-of-label-graph 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| similarity_index_of_label_graph-2.0.1.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| similarity_index_of_label_graph-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / similarity_index_of_label_graph-2.0.1.tar.gz
| Download URL | similarity_index_of_label_graph-2.0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4256cb38e347c4f122b8800f190936b179f911e25bd1422826b9c03d5f049199
|
|
BLAKE2b-256 checksum How to use checksums |
ca130816c1b93b07183c950d9d969e6cc383108405e6bbd9388e143043695bb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / similarity_index_of_label_graph-2.0.1-py3-none-any.whl
| Download URL | similarity_index_of_label_graph-2.0.1-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8b09f781570ba61a6613cf58d6dcfabd8a8e77e797f39315b8e1aaa95e0693b
|
|
BLAKE2b-256 checksum How to use checksums |
f767871110610162342eb26b0d0322f702374c2517fb81b6ecc53f1b82a16a06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|