scala garph