def has_unique_forward_path(self, start_entity_id, end_entity_id):
    '\n        Is the forward path from start to end unique?\n\n        This will raise if there is no such path.\n        '
    paths = self.find_forward_paths(start_entity_id, end_entity_id)
    next(paths)
    second_path = next(paths, None)
    return (not second_path)
Is the forward path from start to end unique?

This will raise if there is no such path.
def has_unique_forward_path(self, start_entity_id, end_entity_id):
    '\n        Is the forward path from start to end unique?\n\n        This will raise if there is no such path.\n        '
    paths = self.find_forward_paths(start_entity_id, end_entity_id)
    next(paths)
    second_path = next(paths, None)
    return (not second_path)