collate_shapes

collate_shapes(shape_list)[source]

Batches a list of GraphShape into one batched GraphShape.

Parameters:

shape_list (list[GraphShape]) – List of GraphShape objects (must share hyper-edge set keys).

Returns:

Batched GraphShape with stacked arrays.

Raises:

ValueError – If the input list is empty.

Return type:

GraphShape