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.3.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.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: routexplorer-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a0959c8ff8fa9729ef5c9cec4f8289db1a97a095c3fc4f84eab9905c472dcad0
MD5 c19b1142ff105b2b025e6b99ea9275b6
BLAKE2b-256 4e3a230a1487c38169891018d3be0649e533fff3e83e00a684e81e8010b2cc48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: routexplorer-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f8317b57923061d7010098dc22bb36e813dd5d31de2ca252d72f76f22a44c5
MD5 df40e3eadda2d8cb978bace664b954a6
BLAKE2b-256 afabb129a34e636383ab202dd32383e8d854c0f9370bc0b488997576665c4760

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