Network.nodes
-
Network.nodes(data=False) Iterate over the nodes of the network.
- Parameters
data (bool, optional) – If
True, yield both the identifier and the attributes.- Yields
hashable – The next node identifier (key), if
dataisFalse.2-tuple – The next node as a (key, attr) tuple, if
dataisTrue.