A Basic Graph Api in Scala