Network.delete_nodes¶
- Network.delete_nodes(nodes, update_shared: bool = True, is_label: bool = False, remove_commodities: bool = True) tuple [source]¶
Delete some nodes from network.
- Parameters
- nodesint, array of ints, str, or array of str
Indices or labels of nodes to delete.
- update_sharedbool, default=True
Whether to updated shared network elements. Keeps consistency to other network elements.
- is_labelbool, default=True
Whether to delete by label or internal node index.
- remove_commoditiesbool, default=True
Whether to remove commodities made up by
nodes
.
- Returns
- int
Amount of deleted nodes.
- int
Amount of deleted commodities.
See also
paminco.net.shared.Shared.delete_nodes
Delete nodes from network.nodes.