instance | R Documentation |
'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.
instance(path_to_file)
path_to_file |
Path to the '.txt' file holding the instance data |
'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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.