In a directed graph, calls fn on each edge of a vertex that ends at vertex. In an undirected graph, this is equivalent to iterate-edges.

fn

iterate-edges