get_instance_type {mwcsr}R Documentation

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)

Arguments

instance

igraph object, containing an instance to be checked

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.

Examples

data(mwcs_example)
get_instance_type(mwcs_example)

[Package mwcsr version 0.1.9 Index]