HyperEdgeSet.pad¶
- HyperEdgeSet.pad(target_shape)[source]¶
Pad a single HyperEdgeSet with a series of zeros for features and max-int for ports so that shapes match the target_shape.
- Parameters:
target_shape (ndarray | int) – Desired n_obj after padding; must be ≥ current n_obj.
- Raises:
ValueError – If called on a batch or if target_shape < current n_obj.