Network.delete_edges

Network.delete_edges(edges, update_shared: bool = True) int[source]

Delete some edges from network.

Parameters
edgesint or array of ints

Edges to delete from network.edges and network.cost objects.

update_sharedbool, default=True

Whether to updated shared network elements. Keeps consistency of network.edges to other network elements.

Returns
int

Amount of deleted edges.

See also

paminco.net.shared.Shared.delete_edges

Delete edges from Edges.

paminco.net.cost.PolynomialCost.delete_edges

Delete edges from PolynomialCost.

paminco.net.cost.PiecewiseQuadraticCost.delete_edges

Delete edges from PiecewiseQuadraticCost.