move to the scala graph lib
some progress