v.net.connectivity(1)

πŸ’– v.net.connectivity πŸ’–

okay bestie, welcome to the GRASS GIS User's Manual ✨ this one is v.net.connectivity(1) and it's giving network-graph main character energy, so let's get into it 🫢

✨ NAME ✨

v.net.connectivity β€” computes vertex connectivity between two sets of nodes in the network πŸ’…

πŸŽ€ 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 β€” bestie, this one lets your output files just overwrite existing files. no hesitation. slay, but careful πŸ’€
  • --help β€” prints the usage summary, iykyk
  • --verbose β€” verbose module output, she's chatty πŸ’¬
  • --quiet β€” quiet module output, she's mysterious 🀫
  • --ui β€” force launching the GUI dialog, for when you want the pretty buttons πŸŽ€

πŸ’œ Parameters πŸ’œ

  • input=name [required] β€” name of input vector map. Or, plot twist, a data source for direct OGR access ✨
  • arc_layer=string β€” arc layer. lowkey important: vector features can have category values in different layers, and this number determines which layer to use. When used with direct OGR access this is the layer name. Default: 1
  • node_layer=string β€” node layer. same vibe as arc_layer fr: vector features can have category values in different layers, this number picks which one. When used with direct OGR access this is the layer name. Default: 2
  • arc_column=name β€” arc forward/both direction(s) cost column (number) πŸ’Έ
  • arc_backward_column=name β€” arc backward direction cost column (number), the reverse-girlie of the one above 🫢
  • output=name [required] β€” name for output vector map 🌈
  • node_column=name β€” node cost column (number) πŸ‘‘
  • set1_cats=range β€” set1 category values. Example: 1,3,7-9,13
  • set1_where=sql_query β€” set1 WHERE conditions of SQL statement without 'where' keyword. Example: income < 1000 and population >= 10000
  • set2_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 πŸ”₯

v.net.connectivity computes vertex connectivity between two sets β€” aka the minimum number of vertices whose removal would separate two given sets. literally the "how many little guys do I have to take out to break these two apart" question 🧚

⭐ NOTES ⭐

The two sets (set1 and set2) get specified by their respective layer, where and cats parameters. no cap.

And listen β€” just like the v.net.flow module, capacities of nodes can be handed over via the node_column option πŸ’…

v.net.connectivity finds the set of nodes of minimum total capacitiy separating the two given sets and outputs a map containing points on the positions of these nodes ✨

Default capacity, which is used when no column is specified, is one. periodt.

🌈 EXAMPLE 🌈

First one: find the minimum number of intersections separating roads on the left bank from roads on the right bank. iconic scenario tbh πŸš—

v.net.connectivity input=roads output=roads_conn set1_where="bank=left" \
      set2_where="bank=right"

Second one, going full aviation:

v.net.connectivity input=airtraffic output=connectivity \
      set1_where="name=JFK" set2_where="name=Heathrow" node_column=capacity

πŸ’« SEE ALSO πŸ’«

v.net, v.net.flow, v.net.bridge

πŸ‘‘ AUTHORS πŸ‘‘

Daniel Bundala, Google Summer of Code 2009, Student Wolf Bergenheim, Mentor

πŸ¦‹ SOURCE CODE πŸ¦‹

Available at: v.net.connectivity source code (history)

Accessed: Saturday Jan 17 05:41:26 2026

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual


okay that's the whole page bestie, no notes, ate πŸ’… this was GRASS 8.4.2 dropping v.net.connectivity(1), last touched Saturday Jan 17 05:41:26 2026 β€” go forth and compute your connectivity, you've got this 🫢✨🌸

πŸ“¦ where this page comes from