#NEWLINE# def nodes( self , data = False ) : #NEWLINE# #INDENT# "Return a list of the nodes in the graph.\n\n        Parameters\n        ----------\n        data : boolean, optional (default=False)\n               If False return a list of nodes.  If True return a\n               two-tuple of node and node data dictionary\n\n        Returns\n        -------\n        nlist : list\n            A list of nodes.  If data=True a list of two-tuples containing\n            (node, node data dictionary).\n\n        Examples\n        --------\n        >>> G = nx.Graph()   # or DiGraph, MultiGraph, MultiDiGraph, etc\n        >>> G.add_path([0,1,2])\n        >>> G.nodes()\n        [0, 1, 2]\n        >>> G.add_node(1, time='5pm')\n        >>> G.nodes(data=True)\n        [(0, {}), (1, {'time': '5pm'}), (2, {})]\n        " #NEWLINE# return list ( self . nodes_iter ( data = data ) )