[GRASS-user] IN: raster-flow-direction OUT:vector-network?

Hello,

I am searching for a good idea to convert a raster-flow-direction map
into a vector-network map.

Probably I will have to write a script. If it is possible at all...

In case of writing a script it mean to me: how to produce a line within
r.mapcalc?

Has anyone a hint?

Cheers,
achim

PS:for illustration I attached a little picture

(attachments)

rasterflow-to-network.png