def nodes_by_category(self, category):
        """ Returns nodes with the given category attribute.
        """
        return [n for n in self.nodes if n.category == category]
def nodes_by_category(self, category):
        """ Returns nodes with the given category attribute.
        """
        return [n for n in self.nodes if n.category == category]
def nodes_by_category ( self , category ) : return [ n for n in self . nodes if n . category == category ]
Returns nodes with the given category attribute.
Returns nodes with the given category attribute .