BaseNetwork.edges
-
BaseNetwork.
edges
(data=False) Iterate over the edges of the network.
- Parameters
data (bool, optional) – If
True
, yield both the identifier and the attributes.- Yields
2-tuple – The next edge identifier (u, v), if
data
isFalse
.3-tuple – The next node as a (u, v, attr) tuple, if
data
isTrue
.