MCPcopy Create free account
hub / github.com/ActiveState/code / _validate

Method _validate

recipes/Python/578615_graph/recipe-578615.py:315–318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

313 return sum(self.itervalues())
314
315 def _validate(self):
316 super(WVertex, self)._validate() #Vertex._validate(self)
317 for weight in self.itervalues():
318 assert isinstance(weight, NumberType)
319
320
321class Vertex(VertexCommon):

Callers

nothing calls this directly

Calls 2

_validateMethod · 0.45
itervaluesMethod · 0.45

Tested by

no test coverage detected