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

Function tutorial_mutable

python/tutorial/T26-Mutable.py:16–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def tutorial_mutable():
17 pipeline = GPipeline()
18 a, c, d = MyNode1(), MyNode1(), MyWriteParamNode()
19 b_mutable = MyMutable([MyNode1('nodeB1'), MyNode1('nodeB2'), MyNode1('nodeB3')])
20
21 pipeline.registerGElement(a, set(), "nodeA")
22 pipeline.registerGElement(b_mutable, {a}, "nodeB")
23 pipeline.registerGElement(c, {a}, "nodeC")
24 pipeline.registerGElement(d, {b_mutable, c}, "nodeD")
25
26 pipeline.process(6)
27
28
29if __name__ == '__main__':

Callers 1

T26-Mutable.pyFile · 0.70

Calls 5

processMethod · 0.95
MyNode1Class · 0.90
MyWriteParamNodeClass · 0.90
MyMutableClass · 0.90
GPipelineClass · 0.85

Tested by

no test coverage detected