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

Method length

examples/ga/sortingnetwork.py:119–121  ·  view source on GitHub ↗

Return the number of comparison-swap used.

(self)

Source from the content-addressed store, hash-verified

117
118 @property
119 def length(self):
120 """Return the number of comparison-swap used."""
121 return sum(len(level) for level in self)
122

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected