Gruphi - Die Graph GUI
This repository has been archived on 2025-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2021-07-11 16:36:24 +02:00
gradle/wrapper Initial Commit 2021-06-28 23:54:52 +02:00
src Use ShortestPathAlgorithm from Gruphi to interact with path finding 2021-07-11 16:36:24 +02:00
.editorconfig Initial Commit 2021-06-28 23:54:52 +02:00
.gitignore Don't commit solutions 2021-07-01 20:50:27 +02:00
build.gradle.kts Remove redundant Main class, use RoadTrip instead 2021-06-29 00:00:24 +02:00
gradlew Initial Commit 2021-06-28 23:54:52 +02:00
gradlew.bat Initial Commit 2021-06-28 23:54:52 +02:00
gruphi.png Add README.md 2021-06-30 18:43:52 +02:00
README.md Update Controls 2021-07-01 23:37:45 +02:00
settings.gradle.kts Initial Commit 2021-06-28 23:54:52 +02:00

Gruphi - Die Graph GUI

Um diese GUI nutzen zu müssen, muss man die H1, sprich die Klasse h07.graph.DirectedGraphImpl, implementiert haben und eine entsprechende Fabrik in der Gruphi.main() angeben. Die einfachste Fabrik sieht in etwa so aus:

public static <V, A> DirectedGraphFactory<V, A> defaultFactory() {
    return DirectedGraphImpl::new;
}

Streuerung

  • Pfeiltasten, Vimkeys, Mittlere Maustaste: Kamera bewegen

  • Mausrad: Zoomen

  • C: Graphen leeren

  • G: Graphen leeren und raster erzeugen

  • Linke Maustaste: Knoten erstellen

  • Rechte Maustaste: Knoten auswählen

  • Escape, Q: Beenden

Wenn Knoten ausgewählt (rot)

  • WASD: Knoten bewegen

  • X, Entfernen, Rücktaste: Knoten löschen

  • Linke Maustaste: Verbingung erstellen bzw. löschen, wenn anderer Knoten geklickt. Sonst Knoten teleportieren

  • Rechte Maustaste: Knoten unauswählen, bwz. neuen Knoten auswählen

  • M: Labyrinth mit Knoten als Startknoten generieren