update ocaml boggle graph