Revision 0dea23b8a923f332938a988741a9e060e219b73e authored by Michael Hahsler on 10 November 2011, 14:06:50 UTC, committed by cran-robot on 10 November 2011, 14:06:50 UTC
1 parent 6d42847
Raw File
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