def minimum_cut_value(G, s, t, capacity='capacity', flow_func=None, **kwargs):
    if flow_func is None:
        if kwargs:
            raise nx.NetworkXError("You have to explicitly set a flow_func if"
                                   " you need to pass parameters via kwargs.")
        flow_func = default_flow_func

    if not callable(flow_func):
        raise nx.NetworkXError("flow_func has to be callable.")

    if kwargs.get('cutoff') is not None and flow_func in flow_funcs:
        raise nx.NetworkXError("cutoff should not be specified.")

    R = flow_func(G, s, t, capacity=capacity, value_only=True, **kwargs)

    return R.graph['flow_value']
Compute the value of a minimum (s, t)-cut.
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/flow/maxflow.py/minimum_cut_value