v.net.spanningtree(1grass)
π v.net.spanningtree π
okay so bestie, this is v.net.spanningtree β straight out of the GRASS User's Manual β¨ and it's literally the girlboss of network graphs. she computes minimum spanning tree for the network. that's it, that's the whole job, and she does it flawlessly. periodt. π
πΈ NAME πΈ
v.net.spanningtree β Computes minimum spanning tree for the network. π
π·οΈ KEYWORDS π·οΈ
vectornetworkspanning tree
π SYNOPSIS π
v.net.spanningtree
v.net.spanningtree --help
v.net.spanningtree [-g] input=name output=name [arc_layer=string]
[node_layer=string] [arc_column=name] [node_column=name]
[--overwrite] [--help] [--verbose] [--quiet] [--ui]
π Flags π
-gβ Use geodesic calculation for longitude-latitude projects. globe girlie behavior π--overwriteβ Allow output files to overwrite existing files. she will absolutely replace your old file, no hesitation, no warning text π--helpβ Print usage summary. your lil cheat sheet π«Ά--verboseβ Verbose module output. she tells you everything π¬--quietβ Quiet module output. she says nothing and just delivers π€«--uiβ Force launching GUI dialog. pop-up moment β¨
π Parameters π
input=name[required] β Name of input vector map. Or data source for direct OGR access.output=name[required] β Name for output vector map.arc_layer=stringβ Arc layer. Vector features can have category values in different layers. 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. Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Default: 2
arc_column=nameβ Arc forward/both direction(s) cost column (number).node_column=nameβ Node cost column (number).
β¨ DESCRIPTION β¨
v.net.spanningtree finds the minimum spanning tree in a network. that's the whole vibe check and she passed it. π₯
π NOTES π
okay so listen up because this part is giving "actually important":
A spanning tree is a minimum cost subnetwork connecting all nodes in an undirected network (same forward and backward costs). π§
If a network is disconnected then the module computes the minimum spanning tree for each (weakly) connected component. So, strictly speaking, v.net.spanningtree does not compute spanning tree but a spanning forest. π²π²π² not me exposing the naming crime π
As the name suggests, a spanning tree is a tree. That is, it contains no cycles and if a component has N nodes then the tree has N-1 edges connecting all nodes. no loops, no drama, just vibes π
accol is used to specify the costs of the edges. The output consists of the edges in the spanning tree. so what you get back = the edges themselves, bestie. π
π EXAMPLES π
Find cheapest set of pipelines connecting all nodes. frugal queen behavior fr fr πΈ
v.net.spanningtree input=projected_pipelines output=spanningtree accol=cost
π SEE ALSO π
v.netv.net.steiner
π AUTHORS π
- Daniel Bundala, Google Summer of Code 2009, Student
- Wolf Bergenheim, Mentor
πΎ SOURCE CODE πΎ
Available at: v.net.spanningtree 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
and that's the whole page bestie, you ate it up, no notes π«Άβ¨
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual β she's literally in the GRASS 8.5.0 era and this manual was served fresh with love. mwah ππΈπ
π¦ 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