collate_graphs¶
- collate_graphs(graph_list)[source]¶
Collate a list of Graphs into a single Graph with padded shapes.
All input graphs must share the same current_shape.
- Parameters:
graph_list (list[Graph]) – List of Graph instances to collate.
- Returns:
A new Graph whose - true_shape is the batch of all true_shape`s. - `current_shape is the batch of all current_shape`s (they must be identical). - `hyper_edge_sets are collated per hyper-edge set class. - non_fictitious_addresses stacked along a new batch dimension.
- Raises:
ValueError – If graph_list is an empty list.
AssertionError – If the current_shape differs among inputs.
- Return type: