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

View source: R/solvers.R

get_instance_typeR 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)

mwcsr documentation built on Sept. 11, 2024, 7:49 p.m.