upgraded scala graph