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

Method __init__

examples/ga/sortingnetwork.py:28–31  ·  view source on GitHub ↗
(self, dimension, connectors = [])

Source from the content-addressed store, hash-verified

26 value to the other.
27 """
28 def __init__(self, dimension, connectors = []):
29 self.dimension = dimension
30 for wire1, wire2 in connectors:
31 self.addConnector(wire1, wire2)
32
33 def addConnector(self, wire1, wire2):
34 """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