~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to vector/v.net.flow/v.net.flow.html

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<h2>DESCRIPTION</h2>
 
2
 
 
3
<em>v.net.flow</em> computes the maximum flow and minimum cut 
 
4
between two sets of nodes.
 
5
 
 
6
<h2>NOTES</h2>
 
7
The two sets of nodes are called <em>sources</em> and <em>sink</em> 
 
8
and <em>v.net.flow</em> finds the maximimum flow from the former to 
 
9
the latter ones. Edge capacities can be specified by <b>arc_column</b> 
 
10
for forward direction and <b>arc_backward_column</b> for backward direction. If 
 
11
the latter parameter is ommited then the same capacity is used in 
 
12
either direction. The sets are given by the respective <b>cats</b>, 
 
13
<b>layer</b> and <b>where</b> parameters. Maximum flow corresponds 
 
14
to the maximum amount of water possibly flowing through the network 
 
15
preserving the capacity constraints and minimum cut to the set of edges 
 
16
of minimum total capacity completely separating sources from sinks. 
 
17
The cut produced by this module corresponds to the first fully 
 
18
saturated edges from sources to sinks. An attribute table containing 
 
19
the flow information is linked to the <b>output</b> map. The table 
 
20
consists of two columns: <em>cat</em> and <em>flow</em> and stores 
 
21
the flow along each line. Negative flow means that "water" is 
 
22
flowing in the backward direction. <b>Cut</b> map contains the edges 
 
23
in the minimum cut.
 
24
<br>
 
25
A famous <a href="http://en.wikipedia.org/wiki/Max-flow_min-cut_theorem">result</a> 
 
26
says that the total amount of water flowing is equal to the minimum 
 
27
cut.
 
28
 
 
29
<h2>EXAMPLES</h2>
 
30
 
 
31
Find maximum flow from factories to stores using SPEED for the capacities.
 
32
<div class="code"><pre>
 
33
v.net.flow input=roads output=roads_flow cut=roads_cut arc_column=SPEED \
 
34
           source_where="type=factory" sink_where="type=store"
 
35
</pre></div>
 
36
<p>
 
37
 
 
38
If all the capacties are one then the minimum cut corresponds to the 
 
39
minimum number of edges separating sources from sinks. 
 
40
<div class="code"><pre>
 
41
v.net.flow input=network output=flow cut=cut arc_column=ones \
 
42
           source_cats=1-10 sink_cats=100-100
 
43
</pre></div>
 
44
 
 
45
 
 
46
<h2>SEE ALSO</h2>
 
47
 
 
48
<em>
 
49
<a href="v.net.html">v.net</a>,
 
50
<a href="v.net.connectivity.html">v.net.connectivity</a>
 
51
</em>
 
52
 
 
53
 
 
54
<h2>AUTHORS</h2>
 
55
 
 
56
Daniel Bundala, Google Summer of Code 2009, Student<br>
 
57
Wolf Bergenheim, Mentor
 
58
 
 
59
<p><i>Last changed: $Date: 2014-12-24 15:44:33 +0100 (Wed, 24 Dec 2014) $</i>