(self)
return iter(
            self.sort_nodes()
        )
Return an iterator of nodes following an optimal traversal order.

        :return:
Return an iterator of nodes following an optimal traversal order.
Return an iterator of nodes following an optimal traversal order .
def nodes(self) -> Iterator[NodeType]:
        """
        Return an iterator of nodes following an optimal traversal order.

        :return:
        """

        return iter(
            self.sort_nodes()
        )
def nodes ( self ) -> Iterator [ NodeType ] : return iter ( self . sort_nodes ( ) )