Network.nodes
- Network.nodes(data=False)[source]
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
data
isFalse
.2-tuple – The next node as a (key, attr) tuple, if
data
isTrue
.