Learn R Programming

mwcsr (version 0.1.10)

get_instance_type: Check the type and the validity of an MWCS instance

Description

Check the type and the validity of an MWCS instance

Usage

get_instance_type(instance)

Value

A list with members type containing the type of the instance, valid -- boolean flag indicating whether the instance is valid or not, errors -- a character vector containing the error messages

A list with two fields: the type of the instance with which it will be treated by solve_mwcsp function and boolean showing validness of the instance.

Arguments

instance

igraph object, containing an instance to be checked

Examples

Run this code
data(mwcs_example)
get_instance_type(mwcs_example)

Run the code above in your browser using DataLab