- reduce_coordination(network, z)[source]#
Deletes throats on network to match specified average coordination number
target (Network) – The network whose throats are to be trimmed
z (scalar) – The desired average coordination number. It is not possible to specify the distribution of the coordination, only the mean value.
trim – A boolean array with
Truevalues indicating which pores to trim (using
op.topotools.trim) to obtain the desired average coordination number.
- Return type:
This method first finds the minimum spanning tree of the network using random weights on each throat, then assures that these throats are not deleted, in order to maintain network connectivity. The list of throats to trim is generated randomly from the throats not on the spanning tree.