opf_write_distances: Writes into a file the precalculated distances computed by...

View source: R/LibOPF.R

opf_write_distancesR Documentation

Writes into a file the precalculated distances computed by opf_distances function

Description

Writes into a file the precalculated distances computed by opf_distances function

Usage

opf_write_distances(distances, file)

Arguments

distances

The matrix produced by the opf distances function

file

The file name where you want to save the distances

Value

'NULL'

Examples

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"))


LibOPF documentation built on Feb. 16, 2023, 10:13 p.m.