Learn R Programming

mwcsr (version 0.1.10)

get_weight: Calculate weight of the solution. MWCS, GMWCS and SGMWCS instances are supported

Description

Calculate weight of the solution. MWCS, GMWCS and SGMWCS instances are supported

Usage

get_weight(solution)

Value

Weight of the subgraph

Arguments

solution

Either mwcsp_solution or `igraph`` object representing the solution