BendNetwork.edge_attribute
- BendNetwork.edge_attribute(key, name, value=None)
 Get or set an attribute of an edge.
- Parameters:
 - keytuple[hashable, hashable]
 The identifier of the edge as a pair of node identifiers.
- namestr
 The name of the attribute.
- valueobj, optional
 The value of the attribute.
- Returns:
 - object | None
 The value of the attribute, or None when the function is used as a “setter”.
- Raises:
 - KeyError
 If the edge does not exist.