Layout

graphs provides an integration with ELK to provide layout for graphs:

sourceimport com.flowtick.graphs._
import com.flowtick.graphs.defaults.label._

lazy val graph: Graph[Int, String] = DijkstraGraph.cities
lazy val layout: Future[GraphLayoutLike] = layoutOps.layout(graph)

layout.onComplete(println)
The source code for this page can be found here.