ash_model.utils.matrices.get_node_id_mapping

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

Returns a mapping of node IDs to indices and vice versa.

Parameters:

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

Returns:

A dictionary mapping node IDs to indices.

Return type:

Dict[int, int]