edgeOf

fun <T, W> edgeOf(node1: Node<T>, node2: Node<T>, weight: W? = null): Edge<T, W>

Shorthand for Edge.of.