Contents:
Map edge attribute by a function
graph (TypeVar(SimpleGraph, Graph, DiGraph)) – Graph to be mapped
TypeVar
SimpleGraph
Graph
DiGraph
edge_attr (str) – Edge attribute to be mapped
str
fn (Callable) – Mapping function
Callable
TypeVar(SimpleGraph, Graph, DiGraph)
Mapped graph