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

Method length

doc/code/tutorials/part_4/sortingnetwork.py:125–127  ·  view source on GitHub ↗

Return the number of comparison-swap used.

(self)

Source from the content-addressed store, hash-verified

123
124 @property
125 def length(self):
126 """Return the number of comparison-swap used."""
127 return sum(len(level) for level in self)
128

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected