algorithm is described in this paper: https://web.cs.ucdavis.edu/~ma/SIGGRAPH02/course23/notes/papers/Jobard.pdf .
implementation inspired by JS version: https://github.com/anvaka/streamlines .
run demo.py
... it generates 2 .svg files in demo-out/