Graph theory abstract data type.
scinet.Graph is designed upon the graph (abstract data type) definition and functions as a bare bones skeletal graph data mapping, containing abstract vertices and edges.
Includes DiGraph and MultiGraph support, with HyperGraph capabilities.
Installation
- Install Python >= 3.8
- Install scinet
$ pip install scinet-josugoar
Usage
Import scinet
import scinet as sn
Create graph
G = sn.Graph()
Manipulate data
- add_vertex
G.add_vertex(vertex := "foo")
- add_edge
Edges must be assigned using hashable keys so that no name conflicts exist between source_vertex and target_vertex edges
key = G.add_edge(source_vertex := "foo", target_vertex := "bar"[, edge := "foobar"])
- remove_vertex
G.remove_vertex(vertex := "foo")
- remove_edge
G.remove_edge(source_vertex := "foo", target_vertex := "bar"[, edge := "foobar"])")
- adjacent
(target_vertex := "bar") in G[(source_vertex := "foo")]
>>> True
- neighbors
set(G[(vertex := "foo")])
>>> { "neighbor_1", "neighbor_2", ... }
See docs for further details.
Contributors
- josugoar - Main contributor - GitHub
Metadata
Release files for scinet-josugoar 0.5.5
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 |
|---|---|---|---|---|
| scinet-josugoar-0.5.5.tar.gz | 4.3 kB | Without provenance | Details for scinet-josugoar-0.5.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scinet_josugoar-0.5.5-py3-none-any.whl | Python 3 | none | any | Details for scinet_josugoar-0.5.5-py3-none-any.whl |
Total release size: 10.1 kB
Release files / scinet-josugoar-0.5.5.tar.gz
| Download URL | scinet-josugoar-0.5.5.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81e2329ee6ba6d63702261ce84b8d819def26039116a3836c5313132ee61d005
|
|
BLAKE2b-256 checksum How to use checksums |
6e0f077b8c98bc2a594169cf8b670452212e49ede6c5b853f8acdcccf939dfed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
|
Release files / scinet_josugoar-0.5.5-py3-none-any.whl
| Download URL | scinet_josugoar-0.5.5-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15084903dc5dd4cf1c4862ecf60d74bc9938e738438df51c968f7232b8c95e6e
|
|
BLAKE2b-256 checksum How to use checksums |
b4b619b0d299e4d1636552988611e198859f92051e2e38c1575a3c2487ec9018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
|
Security for scinet-josugoar 0.5.5
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.