Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Implementation of the Ant Colony system

Project description

Copyright (c) 2017 Jerzy Pawlikowski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description: =================
Ant Colony System
=================

.. image:: https://travis-ci.org/jurekpawlikowski/ant-colony.svg?branch=master
:target: https://travis-ci.org/jurekpawlikowski/ant-colony

Python implementation of the Ant Colony system

Development
-----------

Install the requirements:

pip install -r requirements.txt

Run tests:

pytest --pep8

Usage
-----

from ant_colony.graph import Node, Graph

nodes = [Node(0, 0), Node(0, 1), Node(1, 1), Node(1, 0)]

graph = Graph(nodes)

path, distance = graph.find_shortest_path()

Platform: UNKNOWN

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ant_colony-0.1.2-py3-none-any.whl (6.2 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 12, 2017
ant_colony-0.1.2.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Apr 12, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page