network_to_networkx#

network_to_networkx(network)[source]#

Write OpenPNM Network to a NetworkX object.

Parameters:

network (dict) – The OpenPNM Network to be converted to a NetworkX object

Returns:

G – A NetworkX object with all pore/throat properties attached to it

Return type:

undirected graph object