

def nodes(self, data=False):
    "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        >>> list(G.nodes())\n        [0, 1, 2]\n        >>> G.add_node(1, time='5pm')\n        >>> list(G.nodes(data=True))\n        [(0, {}), (1, {'time': '5pm'}), (2, {})]\n        "
    return list(self.nodes(data=data))

dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py TimingGraph.nodes/original