Nanotopology
The Python project to check the similarity of two graphs using nano sets.
nanosets.py file is used to find nanosets of graph
Input data
1.List of all vertices of graph.
2.Dictionary that contains vertices of graph as key and adjacent vertices as value.
Function explanation
- Parameters of function vh is the list of all vertices of graph(s).
- Parameters of function lower_approximation and upper_approximation are dictionary and the value returned by function vh.
- Parameters of function boundary_region are the values returned from lower-approximation and upper_approximation.
- nanoset is obtained by passing the values returned from lower_approximation, upper_approximation and boundary_region.
graph_euivalence.py file is used to check whether two graphs are isomorphic or not.
Dictionary that contains nodes(key) and adjacent nodes(values) of each graphs are directly passed to the equality function.
Final result will be isomorphic vertices of second graph to the first graph if two graphs are similar else false statement(graphs are not similar) will be returned.
Example
Input
d1 = { 1: [1,2,4,6], 2: [1,2,3], 3: [2,3,4], 4:[1,2,4,6], 5:[4,5,6], 6:[1,5,6] }
d2 = { a: [a,b,c,f], b: [b,e,d,a], c:[a,d,c], d:[b,c,d], e:[b,f,e], f:[e,f,a] }
Output
two graphs are similar
matching nodes
[['a', 'c', 'd', 'b', 'e', 'f'], ['a', 'd', 'c', 'b', 'f', 'e'], ['a', 'e', 'f', 'b', 'c', 'd'], ['a', 'f', 'e', 'b', 'd', 'c'], ['b', 'c', 'd', 'a', 'e', 'f'], ['b', 'd', 'c', 'a', 'f', 'e'], ['b', 'e', 'f', 'a', 'c', 'd'], ['b', 'f', 'e', 'a', 'd', 'c']]
Dependencies
1.Python >= 2.6
Metadata
Release files for nanotopology 1.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 | Provenance | Actions |
|---|---|---|---|---|
| nanotopology-1.0.1.tar.gz | 3.4 kB | Without provenance | Details for nanotopology-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanotopology-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for nanotopology-1.0.1-py3-none-any.whl |
Total release size: 7.6 kB
Release files / nanotopology-1.0.1.tar.gz
| Download URL | nanotopology-1.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc1777ec4892193e21cfa2a7fa0a137b57ac7da2a7bbc70181f9f4d9db9c5d82
|
|
BLAKE2b-256 checksum How to use checksums |
914cfe3ee7ba6215713004f1162386e1f659db5fcb64ccb8756ca17d85974f9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.2
|
Release files / nanotopology-1.0.1-py3-none-any.whl
| Download URL | nanotopology-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
126b3ecde865935e5f6b2468cba60fe918f64b4aa0e227074c9cb95af2e40cf5
|
|
BLAKE2b-256 checksum How to use checksums |
36100a3298b5464916339a44df09d0f45be0631046587e43dd886ece7fd7526a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.2
|
Security for nanotopology 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.