opf_write_distances {LibOPF}R 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"))


[Package LibOPF version 2.6.2 Index]