Use Scala Implementation for Graph