Network analysis using four interfaces

Using convenient GUI wrapper

Open network analysis tool

Using a module directly through GUI

Using unix-like command line

v.net.path input=streets_wake output=shortest_path_2 <<EOF
1 622880.2 228097.3 666860.6 236729.0
EOF

Using Python

import grass.script as gs
network = "streets_wake"
path = "shortest_path_3"
points = "1 622880.2 228097.3 666860.6 236729.0"
gs.write_command('v.net.path', input=network, output=path, stdin=points)

Learn more