def topological_sort(self) -> list[str]:
        """Sort the nodes in topological order.

        :return: list of node names in topological order.
        """
        visited = set()
        order = []

        for v in list(self.nodes.keys()):
            if v not in visited:
                self._topological_sort_util(v, visited, order)

        return order
Sort the nodes in topological order.

        :return: list of node names in topological order.
        
olive/passes/onnx/onnx_dag.py