https://github.com/cran/TSP
Revision 6043c885bb65eedf0f968ff1aebb2b3f829e0e85 authored by Michael Hahsler on 26 May 2011, 00:00:00 UTC, committed by Gabor Csardi on 26 May 2011, 00:00:00 UTC
1 parent 8531604
Raw File
Tip revision: 6043c885bb65eedf0f968ff1aebb2b3f829e0e85 authored by Michael Hahsler on 26 May 2011, 00:00:00 UTC
version 1.0-3
Tip revision: 6043c88
NAMESPACE
useDynLib(TSP)

importFrom(stats, as.dist)
importFrom(grDevices, gray.colors)
importFrom(graphics, image.default)

export(TSP, 
       ATSP, 
       TOUR, 
       reformulate_ATSP_as_TSP,
       n_of_cities, 
       insert_dummy,
       cut_tour,
       tour_length,
       solve_TSP,
       linkern_help, 
       concorde_help, 
       concorde_path,
       read_TSPLIB, 
       write_TSPLIB,
       ## as.matrix,
       as.TSP,
       as.ATSP,
       as.TOUR
       )

## TSP/ATSP
S3method(print, TSP)
S3method(n_of_cities, TSP)
S3method(labels, TSP)
S3method(image, TSP)

S3method(print, ATSP)
S3method(n_of_cities, ATSP)
S3method(labels, ATSP)
S3method(image, ATSP)

S3method(tour_length, TSP)
S3method(tour_length, ATSP)
S3method(insert_dummy, TSP)
S3method(insert_dummy, ATSP)
S3method(write_TSPLIB, TSP)
S3method(write_TSPLIB, ATSP)
S3method(solve_TSP, TSP)
S3method(solve_TSP, ATSP)

## coercions
S3method(as.matrix, ATSP)
S3method(as.TSP, dist)
S3method(as.TSP, matrix)
S3method(as.ATSP, dist)
S3method(as.ATSP, matrix)

## TOUR
S3method(print, TOUR)
S3method(cut_tour, TOUR)
S3method(as.TOUR, integer)
back to top