MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / __init__

Method __init__

python/tutorial/MyGNode/MyTemplateNode.py:13–16  ·  view source on GitHub ↗
(self, num: int, score: float)

Source from the content-addressed store, hash-verified

11
12class MyTemplateNode(GNode):
13 def __init__(self, num: int, score: float):
14 super().__init__() # must call super init function
15 self._num = num
16 self._score = score
17
18 def run(self):
19 print('[{0}] num = [{1}], score = [{2}]'.format(self.getName(), self._num, self._score))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected