DemandVectorSP.delete_nodes

DemandVectorSP.delete_nodes(nodes) int[source]

Delete all commodities that are made up by nodes.

Parameters
nodesint or array_like

Indices of nodes to remove.

Returns
int

Number of removed commodities.