Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A fast python graph library based on numpy and scipy.

Project Description
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
Release History

Release History

This version
History Node

0.8.1

History Node

0.8.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
apgl-0.8.1-py2.7.egg (321.1 kB) Copy SHA256 Checksum SHA256 2.7 Egg Aug 9, 2014
apgl-0.8.1-py3.2.egg (326.2 kB) Copy SHA256 Checksum SHA256 3.2 Egg Aug 9, 2014
apgl-0.8.1-py3.4.egg (329.9 kB) Copy SHA256 Checksum SHA256 3.4 Egg Aug 9, 2014
apgl-0.8.1.tar.gz (89.5 kB) Copy SHA256 Checksum SHA256 Source Aug 9, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting