Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
to_directed
Returns a directed view of the graph graph.
graph
Identical to graph.to_directed(as_view=True) Note that graph.to_directed defaults to as_view=False while this function always provides a view.
as_view=False