Learn R Programming

tspmeta (version 1.2)

remove_zero_distances: Remove any duplicate cities in a tsp instance.

Description

Remove any duplicate cities in a tsp instance.

Usage

remove_zero_distances(instance)

Arguments

instance
[tsp_instance] TSP instance object.

Value

New TSP instance in which all duplicate cities have been removed.