graphit/graph.py
def items(self, keystring=None, valuestring=None):
        """
        Python dict-like function to return node items in the (sub)graph.

        Keystring defines the value lookup key in the node data dict.
        This defaults to the graph key_tag.
        Valuestring defines the value lookup key in the node data dict.

        :param keystring:   Data key to use for dictionary keys.
        :type keystring:    :py:str
        :param valuestring: Data key to use for dictionary values.
        :type valuestring:  :py:str

        :return:            List of keys, value pairs
        :rtype:             :py:list
        """

        keystring = keystring or self.key_tag
        valuestring = valuestring or self.value_tag

        return [(n.get(keystring), n.get(valuestring)) for n in self.iternodes()]

        Python dict-like function to return node items in the (sub)graph.

        Keystring defines the value lookup key in the node data dict.
        This defaults to the graph key_tag.
        Valuestring defines the value lookup key in the node data dict.

        :param keystring:   Data key to use for dictionary keys.
        :type keystring:    :py:str
        :param valuestring: Data key to use for dictionary values.
        :type valuestring:  :py:str

        :return:            List of keys, value pairs
        :rtype:             :py:list
        
Python dict-like function to return node items in the (sub)graph.
Keystring defines the value lookup key in the node data dict.
This defaults to the graph key_tag.
Valuestring defines the value lookup key in the node data dict.
Python dict - like function to return node items in the ( sub ) graph . Keystring defines the value lookup key in the node data dict . This defaults to the graph key_tag . Valuestring defines the value lookup key in the node data dict .
def items(self, keystring=None, valuestring=None):
        keystring = keystring or self.key_tag
        valuestring = valuestring or self.value_tag
        return [(n.get(keystring), n.get(valuestring)) for n in self.iternodes()]
def items ( self , keystring = None , valuestring = None ) : keystring = keystring or self . key_tag valuestring = valuestring or self . value_tag return [ ( n . get ( keystring ) , n . get ( valuestring ) ) for n in self . iternodes ( ) ]
Python dict-like function to return node items in the (sub)graph.
Python dict - like function to return node items in the ( sub ) graph .
"""
        Python dict-like function to return node items in the (sub)graph.

        Keystring defines the value lookup key in the node data dict.
        This defaults to the graph key_tag.
        Valuestring defines the value lookup key in the node data dict.

        :param keystring:   Data key to use for dictionary keys.
        :type keystring:    :py:str
        :param valuestring: Data key to use for dictionary values.
        :type valuestring:  :py:str

        :return:            List of keys, value pairs
        :rtype:             :py:list
        """
List of keys, value pairs
List of keys value pairs
:py:list
self
keystring
Data key to use for dictionary keys.
Data key to use for dictionary keys .
valuestring
Data key to use for dictionary values.
Data key to use for dictionary values .