ribolands/ribolands.py
def sorted_nodes(self, attribute = 'energy', rev = False, nodes = None):
        """ Provide active nodes or new nodes, etc. if needed. """
        if nodes is None:
            nodes = self.nodes
        return sorted(nodes, key = lambda x: self.nodes[x][attribute], reverse = rev)
 Provide active nodes or new nodes, etc. if needed. 
Provide active nodes or new nodes, etc. if needed.
Provide active nodes or new nodes etc . if needed .
def sorted_nodes(self, attribute = 'energy', rev = False, nodes = None):
        if nodes is None:
            nodes = self.nodes
        return sorted(nodes, key = lambda x: self.nodes[x][attribute], reverse = rev)
def sorted_nodes ( self , attribute = 'energy' , rev = False , nodes = None ) : if nodes is None : nodes = self . nodes return sorted ( nodes , key = lambda x : self . nodes [ x ] [ attribute ] , reverse = rev )
Provide active nodes or new nodes, etc.
Provide active nodes or new nodes etc .
""" Provide active nodes or new nodes, etc. if needed. """
self
attribute
rev
nodes