instance: Instantiate a test instance

View source: R/instance.R

instanceR Documentation

Instantiate a test instance

Description

'instance' is used to instantiate a test instance. There are some test instances included in the package, both as raw data and as instance objects. This function is used to convert the raw data to instance objects.

Usage

instance(path_to_file)

Arguments

path_to_file

Path to the '.txt' file holding the instance data

Value

'instance' returns an object of class "'instance'". An object of class "'instance'" is a list containing: 'points' a 'tibble' containing coordinates and scores for each point. 'edges' a 'tibble' containing the (weighted) edges in the graph. 'g' an igraph object of the graph making up the instance. 'dst' a matrix containing the length of shortest paths between points. 'n' an integer equal to the number of points in the instance.


Rosenkrands/dz documentation built on June 26, 2022, 10:43 p.m.