connect

fun connect(from: GraphNode, output: Int, to: GraphNode, input: Int): Wire?(source)

connects the output output of from to the input input of to, replacing the wire at that input