mirror of
https://codeberg.org/qg-info-unterricht/zpg-graphentester.git
synced 2026-03-24 20:48:26 +01:00
Sync with upstream
This commit is contained in:
parent
39a2f13410
commit
66e8fa72bf
135 changed files with 38902 additions and 37757 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#BlueJ class context
|
||||
comment0.target=GraphAlgo_Coloring_Schueler
|
||||
comment0.text=\n\ Dieser\ Algorithmus\ f\u00E4rbt\ einen\ Graphen,\ so\ dass\ keine\ benachbarten\ Knoten\n\ die\ gleiche\ Farbe\ haben\ und\ m\u00F6glichst\ wenige\ Farben\ benutzt\ werden.\n\ Algorithmus\:\ Beispieldatei,\ in\ der\ Sch\u00FCler\ den\ Algorithmus\ selbst\ umsetzen\ k\u00F6nnen\n\n\ @version\ 1.0\ from\ 10.12.2020\n\ @author\ Thomas\ Schaller\n
|
||||
comment0.text=\r\n\ Dieser\ Algorithmus\ f\u00E4rbt\ einen\ Graphen,\ so\ dass\ keine\ benachbarten\ Knoten\r\n\ die\ gleiche\ Farbe\ haben\ und\ m\u00F6glichst\ wenige\ Farben\ benutzt\ werden.\r\n\ Algorithmus\:\ Beispieldatei,\ in\ der\ Sch\u00FCler\ den\ Algorithmus\ selbst\ umsetzen\ k\u00F6nnen\r\n\r\n\ @version\ 1.0\ from\ 10.12.2020\r\n\ @author\ Thomas\ Schaller\r\n
|
||||
comment1.params=
|
||||
comment1.target=java.lang.String\ getBezeichnung()
|
||||
comment2.params=
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import algorithmen.*;
|
|||
|
||||
public class GraphAlgo_Coloring_Schueler extends GraphAlgo {
|
||||
|
||||
|
||||
Graph gr;
|
||||
|
||||
public String getBezeichnung() {
|
||||
return "Greedy-Coloring (toDo)";
|
||||
|
|
@ -29,7 +29,8 @@ public class GraphAlgo_Coloring_Schueler extends GraphAlgo {
|
|||
|
||||
// Anfang Methoden
|
||||
public void fuehreAlgorithmusAus() {
|
||||
getStartKnoten().setFarbe(3);
|
||||
gr = getGraph();
|
||||
getStartKnoten().setFarbe(3);
|
||||
|
||||
// Hole alle Knoten vom Graph g
|
||||
|
||||
|
|
|
|||
|
|
@ -1,27 +1,34 @@
|
|||
#BlueJ package file
|
||||
objectbench.height=93
|
||||
objectbench.width=776
|
||||
package.divider.horizontal=0.599476439790576
|
||||
package.divider.vertical=0.8003992015968064
|
||||
package.editor.height=394
|
||||
package.editor.width=659
|
||||
package.editor.x=819
|
||||
package.editor.y=382
|
||||
package.frame.height=600
|
||||
package.frame.width=800
|
||||
package.numDependencies=0
|
||||
package.numTargets=1
|
||||
package.showExtends=true
|
||||
package.showUses=true
|
||||
readme.height=60
|
||||
readme.name=@README
|
||||
readme.width=49
|
||||
readme.x=10
|
||||
readme.y=10
|
||||
target1.height=50
|
||||
target1.name=GraphAlgo_Coloring_Schueler
|
||||
target1.showInterface=false
|
||||
target1.type=ClassTarget
|
||||
target1.width=220
|
||||
target1.x=10
|
||||
target1.y=90
|
||||
#BlueJ package file
|
||||
objectbench.height=93
|
||||
objectbench.width=760
|
||||
package.divider.horizontal=0.599476439790576
|
||||
package.divider.vertical=0.8
|
||||
package.editor.height=393
|
||||
package.editor.width=649
|
||||
package.editor.x=819
|
||||
package.editor.y=382
|
||||
package.frame.height=600
|
||||
package.frame.width=800
|
||||
package.numDependencies=0
|
||||
package.numTargets=2
|
||||
package.showExtends=true
|
||||
package.showUses=true
|
||||
readme.height=60
|
||||
readme.name=@README
|
||||
readme.width=49
|
||||
readme.x=10
|
||||
readme.y=10
|
||||
target1.height=70
|
||||
target1.name=GraphAlgo_Dijkstra_Eigener
|
||||
target1.showInterface=false
|
||||
target1.type=ClassTarget
|
||||
target1.width=200
|
||||
target1.x=70
|
||||
target1.y=10
|
||||
target2.height=50
|
||||
target2.name=GraphAlgo_Coloring_Schueler
|
||||
target2.showInterface=false
|
||||
target2.type=ClassTarget
|
||||
target2.width=210
|
||||
target2.x=10
|
||||
target2.y=90
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue