Arx-Net
A lightweight Python library for parsing graph edge strings and converting between common graph representations.
Installation
pip install arx-net
Features
-
Parse edge strings
-
Directed and undirected graphs
-
Weighted and unweighted graphs
-
Convert between
- adjacency lists
- edge lists
- adjacency matrices
Example
import arx_net
graph = arx_net.parse_edges(
"(A,B,4),(B,C,2),(C,D)"
)
print(graph)
Output
{
"A": [("B",4)],
"B": [("C",2)],
"C": [("D",1)],
"D": []
}
Convert formats
edges = arx_net.convert_type(graph, "edge")
matrix, order = arx_net.convert_type(graph, "matrix")
Supported formats
Adjacency List
{
"A": ["B", "C"]
}
Edge List
[
("A","B"),
("A","C")
]
Matrix
[
[0,1,1],
[0,0,1],
[0,0,0]
]
License
MIT
Metadata
Release files for arx-net 0.1.0
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 | |
|---|---|---|---|---|
| arx_net-0.1.0.tar.gz | 5.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arx_net-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / arx_net-0.1.0.tar.gz
| Download URL | arx_net-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
347b4f6380a8880d56564c769e47776e065b50cf679a0df191a7ec37656e6f53
|
|
BLAKE2b-256 checksum How to use checksums |
883fe2a44a56fd56c1cca6c5b90086fd3f228467ee9d42ab52ae7607a75c907b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / arx_net-0.1.0-py3-none-any.whl
| Download URL | arx_net-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fe7e0609ead77179913467142d203aaab86eba9bbe9707dcd93c5ad1437b1ab
|
|
BLAKE2b-256 checksum How to use checksums |
d84d8fbda69a30909ecee4d285e6a46df4fac303c3e1ee92ef48543d31d618dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for arx-net 0.1.0
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.