utils.py
def recompute_elim_order(self) -> list:
        """
        recomputes elimination ordering based on possibly modified
        decomposition bags

        :return: new elim_order as list
        """
        rootbag = first(self.bags)  # arbitrarily choose a root bag
        elim_order = list(self.bags[rootbag])  # initialize eo with rootbag
        for u, v in nx.dfs_edges(self.decomp, source=rootbag):
            forgotten = self.bags[v] - self.bags[u]
            elim_order.extend(forgotten)
        elim_order.reverse()
        return elim_order

        recomputes elimination ordering based on possibly modified
        decomposition bags

        :return: new elim_order as list
        
recomputes elimination ordering based on possibly modified
decomposition bags
recomputes elimination ordering based on possibly modified decomposition bags
def recompute_elim_order(self) -> list:
        rootbag = first(self.bags)  
        elim_order = list(self.bags[rootbag])  
        for u, v in nx.dfs_edges(self.decomp, source=rootbag):
            forgotten = self.bags[v] - self.bags[u]
            elim_order.extend(forgotten)
        elim_order.reverse()
        return elim_order
def recompute_elim_order ( self ) -> list : rootbag = first ( self . bags ) elim_order = list ( self . bags [ rootbag ] ) for u , v in nx . dfs_edges ( self . decomp , source = rootbag ) : forgotten = self . bags [ v ] - self . bags [ u ] elim_order . extend ( forgotten ) elim_order . reverse ( ) return elim_order
recomputes elimination ordering based on possibly modified
decomposition bags
recomputes elimination ordering based on possibly modified decomposition bags
"""
        recomputes elimination ordering based on possibly modified
        decomposition bags

        :return: new elim_order as list
        """ # arbitrarily choose a root bag # initialize eo with rootbag
new elim_order as list
new elim_order as list
self