from .optimizer.distance_finder import find_distances
from .optimizer.path_finder import run_genetic_algorithm


def compute_path(data_set):
    """
        Calls the genetic algorithm code to optimize the data set
    """
    find_distances(data_set)
    optimized_path = run_genetic_algorithm()
    return optimized_path
from .optimizer.distance_finder import find_distances
from .optimizer.path_finder import run_genetic_algorithm


def compute_path(data_set):
    """
        Calls the genetic algorithm code to optimize the data set
    """
    find_distances(data_set)
    optimized_path = run_genetic_algorithm()
    return optimized_path
Calls the genetic algorithm code to optimize the data set