v.net.components(1)
π v.net.components π
okay bestie, welcome to the GRASS GIS User's Manual page for v.net.components(1) β yes that's the man page name, no I will not be normal about it β¨
π NAME π
v.net.components β computes strongly and weakly connected components in the network. that's the whole vibe. it finds the friend groups in your network graph π«Ά
π KEYWORDS π
vector, network, components
β¨ SYNOPSIS β¨
v.net.components
v.net.components --help
v.net.components [-a] input=name [arc_layer=string]
[arc_layer=string] [node_layer=string] [arc_column=name] [arc_backward_column=name]
[node_column=string] output=name method=string [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
okay let me redo that properly, exact characters, no autocorrect energy:
v.net.components
v.net.components --help
v.net.components [-a] input=name [arc_layer=string]
[node_layer=string] [arc_column=name] [arc_backward_column=name]
[node_column=string] output=name method=string [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
π© Flags π©
-aβ add points on nodes. like, the module will literally place new points for you π--overwriteβ allow output files to overwrite existing files (she will absolutely replace your old files if you say yes, so be sure bestie)--helpβ print usage summary--verboseβ verbose module output (she talks more, we love a chatty queen)--quietβ quiet module output (she shuts up, respectfully)--uiβ force launching GUI dialog
π¦ Parameters π¦
input=name[required] β name of input vector map. or, plot twist, a data source for direct OGR access πΈarc_layer=stringβ arc layer. vector features can have category values in different layers, and this number determines which layer to use. when you're doing direct OGR access, this is the layer name instead. Default:1node_layer=stringβ node layer. same deal: vector features can have category values in different layers, this number picks which one. 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)node_column=stringβ node cost column (number)output=name[required] β name for output vector mapmethod=string[required] β type of components- Options:
weak,strong weak: weakly connected componentsstrong: strongly connected components
- Options:
π DESCRIPTION π
v.net.components computes the weakly and strongly connected components in a network. that's it, that's the job, and she does it flawlessly no cap π
π₯ NOTES π₯
Two nodes, u and v, are in the same strongly connected component if there are directed paths from u to v and from v to u. mutual travel, mutual respect, iconic. The nodes are in the same weakly connected component if, ignoring edge directions, there is a path between them β so even if the arrows don't line up, as long as you can get there ignoring direction, you're in the same group π«
The type of components is specified by the method parameter. v.net.components creates a table and links it to layer 1. This table contains only two integer columns: cat and comp. If a point or both endpoints of a line belong to the same component then the point/line is written to the output map and appropriate information is stored in the table. If the -a flag is set then new points are added on the nodes without points. These points have category numbers larger than any category used in the input map. noted, no notes missed, periodt βοΈ
One-way roads can be defined by assigning a cost of -1 to the appropriate cost column (arc_column or arc_backward_column). This affects only strongly connected components. Network nodes can be closed by assigning a cost of -1 to the node cost column. All nodes with a cost < 0 can not be traversed and are end points, while all nodes with a cost β₯ 0 can be traversed. This affects both weakly and strongly connected components.
ngl that< 0/β₯ 0bit is doing a LOT of heavy lifting, so read it twice bestie π
πΈ EXAMPLES πΈ
Any road network should form a single strongly connected component. Otherwise, it is impossible to travel between some places. lowkey terrifying but okay π
v.net.components input=roads output=roads_components method=strong
β SEE ALSO β
v.net, v.category
π AUTHORS π
- Daniel Bundala, Google Summer of Code 2009, Student
- Wolf Bergenheim, Mentor
- Markus Metz
π SOURCE CODE π
Available at: v.net.components 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
and that's the whole page bestie π«Ά this was v.net.components(1) from GRASS 8.4.2, dated Saturday Jan 17 05:41:26 2026 β go compute some components, you got this π
β¨
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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