MCPcopy Create free account
hub / github.com/DEAP/deap / __init__

Method __init__

doc/code/tutorials/part_4/sortingnetwork.py:38–41  ·  view source on GitHub ↗
(self, dimension, connectors = [])

Source from the content-addressed store, hash-verified

36 value to the other.
37 """
38 def __init__(self, dimension, connectors = []):
39 self.dimension = dimension
40 for wire1, wire2 in connectors:
41 self.addConnector(wire1, wire2)
42
43 def addConnector(self, wire1, wire2):
44 """Add a connector between wire1 and wire2 in the network."""

Callers

nothing calls this directly

Calls 1

addConnectorMethod · 0.95

Tested by

no test coverage detected