served in attractors.

    Parameters
    ----------
    maxts : list of partial state dictionaries
        Stable motifs, i.e., maximum trap spaces for the system.
    trmaxts : list of partial state dictionaries
        Stable motifs, i.e., maximum trap spaces for the time-reversed system.

    Returns
    -------
    rspace list
        Restrict space list (see restrict_space.rspace for details).

    &#34;&#34;&#34;

    L = []
    for t in maxts+trmaxts: L.append([t])
    return L

def state_in_rspace(