Skip to main content

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.

Source Distribution

ant_colony-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

ant_colony-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ant_colony-0.1.2.tar.gz.

File metadata

  • Download URL: ant_colony-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ant_colony-0.1.2.tar.gz
Algorithm Hash digest
SHA256 223c311a05bda53d8abe16fc1cf9d77193f1c18ca35a7eef824558ece8ddee2a
MD5 e2d958e1df0f15f893cddd8a2c88442d
BLAKE2b-256 ca473ff87167bdc70c940911646c83f3978bd71f6f85651d51e2071190cc3685

See more details on using hashes here.

File details

Details for the file ant_colony-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ant_colony-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33222e25e7ddbfc27d25bf654eab6c71ef00d6f57f677ec8995f37e731804503
MD5 fd4f03091e50c900dc18a3ff0b042a1f
BLAKE2b-256 96abc53a4e4755d7eae0f31fcb83451227d3b54695ce2f7179f7cf32b865df38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page