Network.to_networkx

Network.to_networkx()

Create a new NetworkX graph instance from a graph.

Returns

networkx.DiGraph – A newly created NetworkX DiGraph.