Simple graph works in Scala