def _map_wl(self, entity: Vertex, pos: int, n: int) -> str:
    'Maps certain vertices to MD5 hashes to save memory. For entities of\n        interest (provided by the user to the extract function) and predicates,\n        the string representation is kept.\n\n        Args:\n            entity: The entity to be mapped.\n            pos: The position of the entity in the walk.\n            n: The iteration number of the WL algorithm.\n\n        Returns:\n            A hash (string) or original string representation.\n\n        '
    if ((entity.name in self._entities) or ((pos % 2) == 1)):
        return entity.name
    else:
        return self._label_map[entity][n]
Maps certain vertices to MD5 hashes to save memory. For entities of
interest (provided by the user to the extract function) and predicates,
the string representation is kept.

Args:
    entity: The entity to be mapped.
    pos: The position of the entity in the walk.
    n: The iteration number of the WL algorithm.

Returns:
    A hash (string) or original string representation.
def _map_wl(self, entity: Vertex, pos: int, n: int) -> str:
    'Maps certain vertices to MD5 hashes to save memory. For entities of\n        interest (provided by the user to the extract function) and predicates,\n        the string representation is kept.\n\n        Args:\n            entity: The entity to be mapped.\n            pos: The position of the entity in the walk.\n            n: The iteration number of the WL algorithm.\n\n        Returns:\n            A hash (string) or original string representation.\n\n        '
    if ((entity.name in self._entities) or ((pos % 2) == 1)):
        return entity.name
    else:
        return self._label_map[entity][n]