other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
| v.net.flow(1grass) | Grass User's Manual | v.net.flow(1grass) |
NAME¶
v.net.flow - Computes the maximum flow between two sets of nodes in the network.KEYWORDS¶
vector, network, flowSYNOPSIS¶
v.net.flowFlags:¶
- --overwrite
-
Allow output files to overwrite existing files
- --verbose
-
Verbose module output
- --quiet
-
Quiet module output
Parameters:¶
- input=name
-
Name of input vector map
- layer=integer
-
Layer numberA single vector map can be connected to multiple database tables. This number determines which table to use.Default: 1
- output=name
-
Name for output vector map
- cut=name
-
Name for output vector map containing a minimum cut
- afcolumn=name
-
Name of arc forward/both direction(s) capacity column
- abcolumn=name
-
Name of arc backward direction capacity column
- source_layer=integer
-
Source layer number or nameA single vector map can be connected to multiple database tables. This number determines which table to use.Default: 1
- source_cats=range
-
Source category valuesExample: 1,3,7-9,13
- source_where=sql_query
-
Source WHERE conditions of SQL statement without 'where' keywordExample: income = 10000
- sink_layer=integer
-
Sink layer number or nameA single vector map can be connected to multiple database tables. This number determines which table to use.Default: 1
- sink_cats=range
-
Sink category valuesExample: 1,3,7-9,13
- sink_where=sql_query
-
Sink WHERE conditions of SQL statement without 'where' keywordExample: income = 10000
DESCRIPTION¶
v.net.flow computes the maximum flow and minimum cut between two sets of nodes.NOTES¶
The two sets of nodes are called sources and sink and v.net.flow finds the maximimum flow from the former to the latter ones. Edge capacities can be specified by afcolumn for forward direction and abcolumn for backward direction. If the latter parameter is ommited then the same capacity is used in either direction. The sets are given by the respective cats, layer and where parameters. Maximum flow corresponds to the maximum amount of water possibly flowing through the network preserving the capacity constraints and minimum cut to the set of edges of minimum total capacity completely separating sources from sinks. The cut produced by this module corresponds to the first fully saturated edges from sources to sinks. An attribute table containing the flow information is linked to the output map. The table consists of two columns: cat and flow and stores the flow along each line. Negative flow means that "water" is flowing in the backward direction. Cut map contains the edges in the minimum cut.EXAMPLES¶
Find maximum flow from factories to stores using SPEED for the capacities.source_where="type=factory" sink_where="type=store"
source_cats=1-10 sink_cats=100-100
SEE ALSO¶
v.net, v.net.connectivityAUTHORS¶
Daniel Bundala, Google Summer of Code 2009, Student| GRASS 6.4.4 |