build

fun <T, W> build(builder: MutableGraph<T, W>.() -> Unit): Graph<T, W>

Builds a new, immutable Graph by applying builder to a fresh MutableGraph, then converting the result back to an immutable Graph. Equivalent to MutableGraph.build(builder).toImmutable().