Network.edges
-
Network.
edges
(data=False)[source] Iterate over the edges of the network.
- Parameters
data (bool, optional) – If
True
, yield both the identifier and the attributes.- Yields
tuple – The next edge identifier (u, v), if
data
isFalse
. Otherwise, the next edge identifier and its attributes as a ((u, v), attr) tuple.