Final version of flowbetweenness class