ash_model.utils.matrices.get_hyperedge_id_mapping

ash_model.utils.matrices.get_hyperedge_id_mapping(h)[source]

Returns a mapping of hyperedge IDs to indices and vice versa. This function creates a mapping from hyperedge IDs to their respective indices

Parameters:

h (ASH) – The ASH object to be converted.

Returns:

A dictionary mapping hyperedge IDs to indices.

Return type:

Dict[int, int]