Currently, delete_edges raises an exception if any provided edge does not exist in the hierarchy. This is inconvenient for bulk or automated operations where edge lists may be partially invalid.
Proposal
Add an optional argument:
skip_invalid_edges: bool = False
Behavior
False (default): keep current strict behavior
True: silently skip non-existing edges and delete only valid ones
Example
hierarchy.delete_edges(
edges=[("Parent1", "Child1"), ("ParentX", "ChildX")],
skip_invalid_edges=True
)
Benefit
Improves robustness of bulk operations and aligns with existing skip_... patterns in TM1py.