Skip to main content
Another Python Graph Library is a simple, fast and easy to use graph library. Here is an example of its usage:

::

>>> from apgl.graph import GeneralVertexList, SparseGraph
>>> numVertices = 5
>>> graph = SparseGraph(numVertices)
>>> graph[0,1] = 1
>>> graph[0,2] = 3
>>> graph[1,2] = 0.1
>>> graph[3,4] = 2
>>> graph.setVertex(0, "abc")
>>> graph.findConnectedComponents()
[[0, 1, 2], [3, 4]]
>>> graph.getWeightMatrix()
array([[ 0. , 1. , 3. , 0. , 0. ],
[ 1. , 0. , 0.1, 0. , 0. ],
[ 3. , 0.1, 0. , 0. , 0. ],
[ 0. , 0. , 0. , 0. , 2. ],
[ 0. , 0. , 0. , 2. , 0. ]])
>>> graph.degreeDistribution()
array([0, 2, 3])
>>> graph.neighbours(0)
array([2, 1], dtype=int32)
>>> print(graph)
SparseGraph: vertices 5, edges 4, undirected, vertex list type: GeneralVertexList


More Information
----------------

* See the user guide at http://pythonhosted.org/apgl/
* The source code is available at https://github.com/charanpald/APGL

Metadata

Release files for apgl 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apgl 0.8.1
File Size Uploaded Provenance Actions
apgl-0.8.1.tar.gz 89.5 kB Without provenance Details for apgl-0.8.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for apgl 0.8.1
File Interpreter ABI Platform Actions
apgl-0.8.1-py3.4.egg Legacy Egg format - - Details for apgl-0.8.1-py3.4.egg
apgl-0.8.1-py3.2.egg Legacy Egg format - - Details for apgl-0.8.1-py3.2.egg
apgl-0.8.1-py2.7.egg Legacy Egg format - - Details for apgl-0.8.1-py2.7.egg

Total release size: 1.1 MB

Release files / apgl-0.8.1.tar.gz

Download URL apgl-0.8.1.tar.gz
Size 89.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d52c632aab7028cdbb64ce3f47953aaa3de3bbf5ab6647c9643e91d8166a7f6e
BLAKE2b-256 checksum
How to use checksums
fb2a7f2262317faed16a0551b550874b73e107cffa3d9ee69b0451d21ee380b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / apgl-0.8.1-py3.4.egg

Download URL apgl-0.8.1-py3.4.egg
Size 329.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
c319302b592859e7ffbd716dfe57bdf75e8ed55124464c8d4613e6fd49702f78
BLAKE2b-256 checksum
How to use checksums
dca01e57036e50fcca0e16b166377eb5e775aa706dc1c56a269f9a60e17c9a86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / apgl-0.8.1-py3.2.egg

Download URL apgl-0.8.1-py3.2.egg
Size 326.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
197e3d4c43e76e285298c47c35d7e2450c10d07c5640a3f0a19dff15f45eab78
BLAKE2b-256 checksum
How to use checksums
4477b4fed52b4fcbe8aa1c3fb9284ab60366ef11d05df7062960cc1dbea35033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / apgl-0.8.1-py2.7.egg

Download URL apgl-0.8.1-py2.7.egg
Size 321.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
edaf1dc4d52be5c8488cc238453fe91509bebe86a96eab1c46160624bf65dced
BLAKE2b-256 checksum
How to use checksums
003e6f9d4b13d6d76ec2b48995df151f37886f69810ae603839385bb6bebf568
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for apgl 0.8.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.

Release history Release notifications | RSS feed

This release

0.8.1 This release

4 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page