FormDiagram.nodes

FormDiagram.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 is False.

  • 2-tuple – The next node as a (key, attr) tuple, if data is True.