powered by
Writes into a file the precalculated distances computed by opf_distances function
opf_write_distances(distances, file)
`NULL`
The matrix produced by the opf distances function
The file name where you want to save the distances
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"))
Run the code above in your browser using DataLab