2 # Generated python file of Graph GraphEssai
6 GraphUnValid = Graph( 'GraphUnValid' )
7 GraphUnValid.SetName( 'GraphUnValid' )
8 GraphUnValid.SetAuthor( '' )
9 GraphUnValid.SetComment( '' )
10 GraphUnValid.Coords( 0 , 0 )
12 # Creation of Factory Nodes
14 Add = GraphUnValid.FNode( 'AddComponent' , 'AddComponent' , 'Add' )
17 Add.SetContainer( 'FactoryServer' )
18 Add.SetComment( 'Add from AddComponent' )
21 Sub = GraphUnValid.FNode( 'SubComponent' , 'SubComponent' , 'Sub' )
24 Sub.SetContainer( 'FactoryServer' )
25 Sub.SetComment( 'Sub from SubComponent' )
28 Mul = GraphUnValid.FNode( 'MulComponent' , 'MulComponent' , 'Mul' )
31 Mul.SetContainer( 'FactoryServer' )
32 Mul.SetComment( 'Mul from MulComponent' )
33 Mul.Coords( 390 , 62 )
35 Div = GraphUnValid.FNode( 'DivComponent' , 'DivComponent' , 'Div' )
38 Div.SetContainer( 'FactoryServer' )
39 Div.SetComment( 'Div from DivComponent' )
40 Div.Coords( 575 , 11 )
43 Addz = Add.Port( 'z' )
44 Muly = GraphUnValid.Link( Addz , Mul.Port( 'y' ) )
46 Suby = GraphUnValid.Link( Addz , Sub.Port( 'y' ) )
47 Suby.AddCoord( 1 , 182 , 113 )
48 Suby.AddCoord( 2 , 183 , 170 )
50 Subz = Sub.Port( 'z' )
51 Divx = GraphUnValid.Link( Subz , Div.Port( 'x' ) )
52 Divx.AddCoord( 1 , 566 , 91 )
53 Divx.AddCoord( 2 , 566 , 49 )
54 Divx.AddCoord( 3 , 380 , 49 )
55 Divx.AddCoord( 4 , 379 , 84 )
57 Mulx = GraphUnValid.Link( Subz , Mul.Port( 'x' ) )
58 Mulx.AddCoord( 1 , 379 , 141 )
59 Mulx.AddCoord( 2 , 378 , 85 )
61 Mulz = Mul.Port( 'z' )
62 Divy = GraphUnValid.Link( Mulz , Div.Port( 'y' ) )
63 Divy.AddCoord( 1 , 565 , 120 )
64 Divy.AddCoord( 2 , 565 , 141 )
66 Subx = GraphUnValid.Link( Mulz , Sub.Port( 'x' ) )
67 Subx.AddCoord( 1 , 194 , 84 )
68 Subx.AddCoord( 2 , 195 , 252 )
69 Subx.AddCoord( 3 , 566 , 252 )
70 Subx.AddCoord( 4 , 565 , 141 )
72 # Creation of Output variables
73 AddFuncValue = Add.Port( 'FuncValue' )
74 Divz = Div.Port( 'z' )
76 GraphInLinesUnValid.IsValid()
78 # Creation of Output variables
85 GraphUnValid.PrintPorts()