(self, nodes: Optional[Collection[NodeType]] = None)
Get a list of all nodes sorted in an optimal traversal order.

        :param iterable nodes: A collection of nodes to sort. If none, all nodes in the graph will be used to sort.
        :return:               A list of sorted nodes.
        :rtype:                list
Get a list of all nodes sorted in an optimal traversal order.
Get a list of all nodes sorted in an optimal traversal order .
def sort_nodes(self, nodes: Optional[Collection[NodeType]] = None) -> List[NodeType]:
        """
        Get a list of all nodes sorted in an optimal traversal order.

        :param iterable nodes: A collection of nodes to sort. If none, all nodes in the graph will be used to sort.
        :return:               A list of sorted nodes.
        :rtype:                list
        """

        raise NotImplementedError()
def sort_nodes ( self , nodes : Optional [ Collection [ NodeType ] ] = None ) -> List [ NodeType ] : raise NotImplementedError ( )