Force-directed graph layout implementation for Scala