def dfs_postorder(self, root): G = nx.Graph(self.E) tree_graph = nx.dfs_tree(G,root) clique_ordering = list(nx.dfs_postorder_nodes(tree_graph,root)) return clique_ordering