2 # Generated python file of Graph GraphGOTOMemory
6 # Graph creation of GraphGOTOMemory
7 def DefGraphGOTOMemory() :
8 GraphGOTOMemory = Graph( 'GraphGOTOMemory' )
9 GraphGOTOMemory.SetName( 'GraphGOTOMemory' )
10 GraphGOTOMemory.SetAuthor( 'JR' )
11 GraphGOTOMemory.SetComment( 'To study memory leaks' )
12 GraphGOTOMemory.Coords( 0 , 0 )
14 # Creation of Factory Nodes
16 # Creation of InLine Nodes
18 InLine = GraphGOTOMemory.INode( '' , PyInLine )
19 InLine.SetName( 'InLine' )
20 InLine.SetAuthor( '' )
21 InLine.SetComment( 'Compute Node' )
22 InLine.Coords( 74 , 178 )
23 IInLineGate = InLine.GetInPort( 'Gate' )
24 OInLineGate = InLine.GetOutPort( 'Gate' )
26 # Creation of GOTO Nodes
28 GoTo = GraphGOTOMemory.GNode( '' , PyGoTo , 'InLine' )
29 GoTo.SetName( 'GoTo' )
31 GoTo.SetComment( 'Compute Node' )
32 GoTo.Coords( 533 , 218 )
33 IGoToGate = GoTo.GetInPort( 'Gate' )
34 OGoToGate = GoTo.GetOutPort( 'Gate' )
37 LInLineGateGoToGate = GraphGOTOMemory.Link( OInLineGate , IGoToGate )
39 LGoToGateInLineGate = GraphGOTOMemory.Link( OGoToGate , IInLineGate )
40 LGoToGateInLineGate.AddCoord( 1 , 69 , 420 )
41 LGoToGateInLineGate.AddCoord( 2 , 700 , 420 )
43 # Output Ports of the graph
44 return GraphGOTOMemory
47 GraphGOTOMemory = DefGraphGOTOMemory()
50 GraphGOTOMemory.DoneW()
51 GraphGOTOMemory.State()
52 GraphGOTOMemory.PrintPorts()