of

fun <T, W> of(edge: Edge<T, W>, vararg edges: Edge<T, W>): MutableGraph<T, W>

Creates a new MutableGraph containing exactly edge (and any edges), and their endpoint nodes.


fun <T, W> of(edges: Iterable<Edge<T, W>>): MutableGraph<T, W>
fun <T, W> of(edges: Sequence<Edge<T, W>>): MutableGraph<T, W>

Creates a new MutableGraph containing exactly the given edges, and their endpoint nodes.