opf_write_distances {LibOPF} | R Documentation |
Writes into a file the precalculated distances computed by opf_distances function
opf_write_distances(distances, file)
distances |
The matrix produced by the opf distances function |
file |
The file name where you want to save the distances |
'NULL'
dat <- opf_read_subGraph(system.file("extdata/boat.dat",package = "LibOPF"))
dist <- opf_distance(dat,3,0)
opf_write_distances(dist, file.path(tempdir(), "distances.dat"))