def get_forward_entities(self, entity_id, deep=False):
    '\n        Get entities that are in a forward relationship with entity\n\n        Args:\n            entity_id (str): Id entity of entity to search from.\n            deep (bool): if True, recursively find forward entities.\n\n        Yields a tuple of (descendent_id, path from entity_id to descendant).\n        '
    for relationship in self.get_forward_relationships(entity_id):
        parent_eid = relationship.parent_entity.id
        direct_path = RelationshipPath([(True, relationship)])
        (yield (parent_eid, direct_path))
        if deep:
            sub_entities = self.get_forward_entities(parent_eid, deep=True)
            for (sub_eid, path) in sub_entities:
                (yield (sub_eid, (direct_path + path)))
Get entities that are in a forward relationship with entity

Args:
    entity_id (str): Id entity of entity to search from.
    deep (bool): if True, recursively find forward entities.

Yields a tuple of (descendent_id, path from entity_id to descendant).
def get_forward_entities(self, entity_id, deep=False):
    '\n        Get entities that are in a forward relationship with entity\n\n        Args:\n            entity_id (str): Id entity of entity to search from.\n            deep (bool): if True, recursively find forward entities.\n\n        Yields a tuple of (descendent_id, path from entity_id to descendant).\n        '
    for relationship in self.get_forward_relationships(entity_id):
        parent_eid = relationship.parent_entity.id
        direct_path = RelationshipPath([(True, relationship)])
        (yield (parent_eid, direct_path))
        if deep:
            sub_entities = self.get_forward_entities(parent_eid, deep=True)
            for (sub_eid, path) in sub_entities:
                (yield (sub_eid, (direct_path + path)))