Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  graph.g   Sprache: unbekannt

 
################################################
#! @BeginChunk Example_Create_Graph_2
#! @BeginExample

graph := Graph(GraphType.DIRECTED);
SetSimulation(graph, false);
shape1 := Shape(ShapeType.SQUARE);
shape1!.layer := 1;
shape2 := Shape(ShapeType.TRIANGLE);
shape2!.layer := 3;
link := Link(shape1, shape2);
Add(graph, link);
Add(graph, [shape1, shape2]);

#! @EndExample
#! @EndChunk

################################################
#! @BeginChunk Example_Create_Graph_3
#! @BeginExample

graph := Graph(GraphType.UNDIRECTED);
shape := Shape(ShapeType.SQUARE);
MyFunction := function() Add(graph, Shape(ShapeType.Circle)); return graph; end;
callback := Callback(TriggerType.RIGHT_CLICK, MyFunction);
Add(shape, callback);
Add(graph, shape);

#! @EndExample
#! @EndChunk

################################################
#! @BeginChunk Example_Create_Graph_4
#! @BeginExample

gap> graph := Graph(GraphType.TREE);
<IsFrancyObject/IsFrancyGraph>
gap> shape := Shape(ShapeType.SQUARE);
<IsFrancyObject/IsShape>
gap> shape1 := Shape(ShapeType.SQUARE);
<IsFrancyObject/IsShape>
gap> SetParentShape(shape1, shape);
Add(graph, [shape, shape1]);

#! @EndExample
#! @EndChunk

[ Dauer der Verarbeitung: 0.32 Sekunden  (vorverarbeitet)  ]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge