7.2.1.1. add_edge_fun

add_edge_fun(graph)[source]

Returns a function that adds an edge to the graph checking only the out node.

Parameters:graph (networkx.classes.digraph.DiGraph) – A directed graph.
Returns:A function that adds an edge to the graph.
Return type:callable