exa.core.util.topology.get_naive_layer_from_subsets

exa.core.util.topology.get_naive_layer_from_subsets#

get_naive_layer_from_subsets(all_subsets)#

Get a single naive layer of a coloring.

Going in order, find a set of subsets which does not overlap on any element.

Parameters:

all_subsets (list[set[str]]) – List of all the subsets.

Returns:

List of indices included and the total number of included elements.

Return type:

tuple[list[int], int]