@property
def id_to_index(self) -> Dict[(int, int)]:
    'Read-only property returning the mapping of ID to index\n\n        Notes\n        -----\n        Although the property is read-only, the return value object\n        is a cached mutable dictionary object. Modifying the mesh\n        without clearing the cache properly or mutating the\n        returned object could result in undefined behavior\n        '
    if (self._id_to_index is None):
        self._id_to_index = {node_id: index for (index, node_id) in enumerate(self().keys())}
    return self._id_to_index
Read-only property returning the mapping of ID to index

Notes
-----
Although the property is read-only, the return value object
is a cached mutable dictionary object. Modifying the mesh
without clearing the cache properly or mutating the
returned object could result in undefined behavior
@property
def id_to_index(self) -> Dict[(int, int)]:
    'Read-only property returning the mapping of ID to index\n\n        Notes\n        -----\n        Although the property is read-only, the return value object\n        is a cached mutable dictionary object. Modifying the mesh\n        without clearing the cache properly or mutating the\n        returned object could result in undefined behavior\n        '
    if (self._id_to_index is None):
        self._id_to_index = {node_id: index for (index, node_id) in enumerate(self().keys())}
    return self._id_to_index