Library to work with graph in Haskell