method Creature.prototype.connect Creature.prototype.connect(from: number,to: number,weight: number,type?: "positive" | "negative" | "condition",): Synapse Connect two neurons with a synapse. Parameters from: number The index of the source neuron. to: number The index of the target neuron. weight: number The weight of the synapse. optional type: "positive" | "negative" | "condition" The type of the synapse. Return Type Synapse The created synapse.