v.net.connectivity(1grass)
β¨ v.net.connectivity β¨
okay bestie, welcome to v.net.connectivity(1grass) π this is the module that does vertex connectivity between two sets of nodes, and it is lowkey iconic. it lives in the vector, network, connectivity corner of GRASS and no cap, it's about to be your fave.
πΈ NAME πΈ
v.net.connectivity β computes vertex connectivity between two sets of nodes in the network. it's giving "how many little guys do i have to delete to break these two apart" energy π¦
π KEYWORDS π
- vector
- network
- connectivity
β SYNOPSIS β
v.net.connectivity
v.net.connectivity --help
v.net.connectivity input=name [arc_layer=string] [node_layer=string]
[arc_column=name] [arc_backward_column=name] output=name
[node_column=name] [set1_cats=range] [set1_where=sql_query]
[set2_cats=range] [set2_where=sql_query] [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
π«Ά Flags:
--overwriteβ lets output files straight up overwrite files that already exist. be brave, bestie π--helpβ prints the usage summary, for when you're like "wait what"--verboseβ verbose module output, the module will NOT stop talking--quietβ quiet module output, the module goes silent mode π€«--uiβ forces launching the GUI dialog, for the visual girlies
π§ Parameters:
input=name[required] β name of input vector map. can also be a data source for direct OGR accessarc_layer=stringβ arc layer. so here's the thing: vector features can have category values in different layers, and this number picks which layer to use. when you're using direct OGR access, this thing is the layer name instead. default:1node_layer=stringβ node layer. same deal as above: vector features can have category values in different layers, this number decides which layer, and with direct OGR access it's the layer name. default:2arc_column=nameβ arc forward/both direction(s) cost column (number)arc_backward_column=nameβ arc backward direction cost column (number)output=name[required] β name for output vector mapnode_column=nameβ node cost column (number)set1_cats=rangeβ Set1 category values. example:1,3,7-9,13set1_where=sql_queryβ Set1 WHERE conditions of SQL statement withoutβwhereβkeyword. example:income < 1000 and population >= 10000set2_cats=rangeβ Category values. Set2 category values πset2_where=sql_queryβ Set2 WHERE conditions of SQL statement withoutβwhereβkeyword. example:income < 1000 and population >= 10000
π DESCRIPTION π
so v.net.connectivity computes vertex connectivity between two sets β periodt. what that means is: it finds the minimum number of vertices whose removal would separate two given sets. literally the smallest sabotage squad that would cut set1 off from set2 ππ
π NOTES π
your two sets (set1 and set2) get specified through their own layer, where and cats parameters β mix and match however, bestie.
and just like the v.net.flow module, you can hand over capacities of nodes using the node_column option. obsessed.
what v.net.connectivity actually does: it finds the set of nodes with the minimum total capacitiy separating the two given sets, and then it outputs a map containing points on the positions of these nodes. slay.
the default capacity β the one it uses when you didn't specify any column β is 1. no notes, iconic.
π₯ EXAMPLE π₯
say you wanna find the minimum number of intersections separating roads on the left bank from roads on the right bank. bet:
v.net.connectivity input=roads output=roads_conn set1_where="bank=left" \
set2_where="bank=right"
and here's the airtraffic one, cutting JFK off from Heathrow with capacity as the node column:
v.net.connectivity input=airtraffic output=connectivity \
set1_where="name=JFK" set2_where="name=Heathrow" node_column=capacity
π SEE ALSO π
v.netv.net.flowv.net.bridge
go read those too, bestie, it's a whole ecosystem π«Ά
π AUTHORS π
- Daniel Bundala, Google Summer of Code 2009, Student
- Wolf Bergenheim, Mentor
π¦ SOURCE CODE π¦
Available at: v.net.connectivity source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
okay that's the whole page π and for the lil sign-off: this is GRASS 8.5.0, straight out of the GRASS 8.5.0 Reference Manual, Β© 2003-2026 GRASS Development Team π ty for coming to my ted talk, now go compute some connectivity, iykyk β¨
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms