networks
mincut
finds the minimum cut in a network flow problem
Calling Sequence
Parameters
Description
Examples
mincut(G, s, t)
mincut(G, s, t, vf)
G
-
graph or network
s
source node
t
sink node
vf
name used to return the value of the flow
Important:The networks package has been deprecated. Use the superseding package GraphTheoryinstead.
This routine returns the smallest set of edges whose deletion disconnects all s, t directed paths.
If vf is passed then on return it will contain the value of the cut.
The routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[mincut](...).
with⁡networks:
G≔petersen⁡:
mincut⁡G,1,2,vf
e1,e11,e5
3
See Also
GraphTheory
networks(deprecated)[countcuts]
networks(deprecated)[edges]
networks(deprecated)[flow]
with
Download Help Document