DemandFunction.delete_nodes

DemandFunction.delete_nodes(*args, **kwargs) 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.