Skip to main content

RouteXplorer is a lib developed to optimize routes in Complete Graphs.

Project description



Python License: MIT Development Status

RouteXplorer is a Python library developed to solve the Traveling Salesman Problem (TSP) in complete graphs. Its goal is to find the most efficient sequence of visiting nodes in a graph, minimizing the total distance traveled.

Install

$ pip install routexplorer
Try your first RouteXplorer program
$ python
>>> from routexplorer.utils.input_reader import InputReader
>>> from routexplorer.algorithms.BruteForceSearch import BruteForceSearch

>>> # Datas of graph
>>> graph = InputReader.read_file(input("Enter file path: ")) 

>>> # Calculation of the best path and distance
>>> best_path, best_distance = BruteForceSearch.find_best_path(graph, True, True)
Create a .txt file
4 5
0 0 0 0 D
0 A 0 0 0
0 0 0 0 C
R 0 B 0 0
$ Enter file path: file/path/file.txt
100% [■■■■■■■■■■] - Generating permutations
100% [■■■■■■■■■■] - Checking paths
Best path: ['A', 'D', 'C', 'B'] 
Shorter distance: (14)

Key Features

  • Efficient Algorithms: RouteXplorer implements a variety of optimized algorithms to solve the Traveling Salesman Problem, allowing you to find solutions quickly and efficiently.

  • Flexible Customization: The library offers flexible options to customize the algorithm settings, allowing you to adapt the optimization process to the specific needs of your project.

  • Simple Integration: The library is easy to integrate into your existing Python projects, allowing you to leverage its powerful functionality without complications.

Contribution

RouteXplorer is an open source project and we encourage community contributions. If you want to contribute, please follow the guidelines outlined in the repository's CONTRIBUTING.md file.

License

RouteXplorer is distributed under the MIT license. For more information, see the LICENSE.md file.

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

routexplorer-0.0.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

routexplorer-0.0.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file routexplorer-0.0.5.tar.gz.

File metadata

  • Download URL: routexplorer-0.0.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.9 Linux/6.2.6-76060206-generic

File hashes

Hashes for routexplorer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 41fddd2bd8be693e49e7e4225d1e932cb0506f55c03fa7fc019034b069504768
MD5 d92c0864405cc7aef821313a565bec21
BLAKE2b-256 c81aca2609e1b43f032d9a8735a47c9fcc89380d6f8bf6757633dcb037ee7f1f

See more details on using hashes here.

File details

Details for the file routexplorer-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: routexplorer-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.9 Linux/6.2.6-76060206-generic

File hashes

Hashes for routexplorer-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 25cc6fe03c3ea260d60aa9f962dde6bdde630f23103a2752225dd6d7a782153e
MD5 ca3dc3e83cdcae4fe59bcc07a0b940f3
BLAKE2b-256 7e2315f68695dd94455f1e3ea9d3fc73e0cb681da9cef2157afda6e65739a673

See more details on using hashes here.

Supported by

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