get_parents#

get_parents(domain, population=None)#

Get the parents of the objects in the population. If no population is provided, get the parents of all objects in the domain.

Parameters:
domainobject

The domain containing the objects.

populationquery-like, optional

Population of objects to consider. Defaults to None.

Returns:
parent_idslist of lists

A list where each element is a list of parent IDs for the corresponding object.

object_indicesnumpy.ndarray

An array of object indices corresponding to the query.