Shared.delete_nodes_in_edges

Shared.delete_nodes_in_edges(nodes, update: bool = True, is_label: bool = False, **kwargs)[source]

Delete node(s) from Edges object.

An edge is deleted if either source or target id equals that of a node in nodes.

Parameters
nodesint, array of ints, str, or array of str

Nodes to delete.

return_indicesbool, default=False

If True, edge indices of deleted edges are returned.

Returns
ndarray, optional

If return_indices is True, edge indices of deleted edges are returned.