graphit/graph.py
def iternodes(self, orm_cls=None, reverse=False, sort_key=str):
        """
        Graph node iterator
        
        Returns a new graph view object for the given node and it's edges.
        The dynamically created object contains additional node tools.
        Nodes are returned in node ID sorted order.

        :param orm_cls:  custom classes to construct new Graph class from for
                         every node that is returned
        :type orm_cls:   list
        :param reverse:  switch between ascending and descending sort order of
                         the returned nodes
        :type reverse:   :py:bool
        :param sort_key: function for sorting node IDs. Equivalent to the 'key'
                         argument to Pythons 'sorted' build in function.

        :return:         single node Graph object
        :rtype:          :graphit:Graph
        """
        
        for node in sorted(self.nodes.keys(), reverse=reverse, key=sort_key):
            yield self.getnodes(node, orm_cls=orm_cls)

        Graph node iterator
        
        Returns a new graph view object for the given node and it's edges.
        The dynamically created object contains additional node tools.
        Nodes are returned in node ID sorted order.

        :param orm_cls:  custom classes to construct new Graph class from for
                         every node that is returned
        :type orm_cls:   list
        :param reverse:  switch between ascending and descending sort order of
                         the returned nodes
        :type reverse:   :py:bool
        :param sort_key: function for sorting node IDs. Equivalent to the 'key'
                         argument to Pythons 'sorted' build in function.

        :return:         single node Graph object
        :rtype:          :graphit:Graph
        
Graph node iterator
Returns a new graph view object for the given node and it's edges.
The dynamically created object contains additional node tools.
Nodes are returned in node ID sorted order.
Graph node iterator Returns a new graph view object for the given node and it ' s edges . The dynamically created object contains additional node tools . Nodes are returned in node ID sorted order .
def iternodes(self, orm_cls=None, reverse=False, sort_key=str):
        for node in sorted(self.nodes.keys(), reverse=reverse, key=sort_key):
            yield self.getnodes(node, orm_cls=orm_cls)
def iternodes ( self , orm_cls = None , reverse = False , sort_key = str ) : for node in sorted ( self . nodes . keys ( ) , reverse = reverse , key = sort_key ) : yield self . getnodes ( node , orm_cls = orm_cls )
Graph node iterator
Returns a new graph view object for the given node and it's edges.
Graph node iterator Returns a new graph view object for the given node and it ' s edges .
"""
        Graph node iterator
        
        Returns a new graph view object for the given node and it's edges.
        The dynamically created object contains additional node tools.
        Nodes are returned in node ID sorted order.

        :param orm_cls:  custom classes to construct new Graph class from for
                         every node that is returned
        :type orm_cls:   list
        :param reverse:  switch between ascending and descending sort order of
                         the returned nodes
        :type reverse:   :py:bool
        :param sort_key: function for sorting node IDs. Equivalent to the 'key'
                         argument to Pythons 'sorted' build in function.

        :return:         single node Graph object
        :rtype:          :graphit:Graph
        """
single node Graph object
single node Graph object
:graphit:Graph
self
orm_cls
custom classes to construct new Graph class from for
every node that is returned
custom classes to construct new Graph class from for every node that is returned
reverse
switch between ascending and descending sort order of
the returned nodes
switch between ascending and descending sort order of the returned nodes
sort_key
function for sorting node IDs. Equivalent to the 'key'
argument to Pythons 'sorted' build in function.
function for sorting node IDs . Equivalent to the ' key ' argument to Pythons ' sorted ' build in function .