replaced contentsOf implementation with an implementation based on Graph4Scala