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

Function tutorial_region

python/tutorial/T03-Region.py:15–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def tutorial_region():
16 b1 = MyNode1("nodeB1")
17 b2 = MyNode2({b1}, "nodeB2", 2)
18 b3 = MyNode1({b1}, "nodeB3", 1)
19 b4 = MyNode1({b2, b3}, "nodeB4", 1)
20 b_region = GRegion([b1, b2, b3, b4])
21
22 pipeline = GPipeline()
23 a, c = MyNode1(), MyNode2()
24
25 pipeline.registerGElement(a, set(), "nodeA")
26 pipeline.registerGElement(b_region, {a}, "regionB", 2)
27 pipeline.registerGElement(c, {b_region}, "nodeC")
28
29 pipeline.process()
30
31
32if __name__ == '__main__':

Callers 1

T03-Region.pyFile · 0.70

Calls 4

processMethod · 0.95
MyNode1Class · 0.90
MyNode2Class · 0.90
GPipelineClass · 0.85

Tested by

no test coverage detected