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-01 20:50:27 +02:00
gradle/wrapper Initial Commit 2021-06-28 23:54:52 +02:00
src Pass factory via constructor 2021-06-30 18:46:10 +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 Smaller DirectedGraphFactory example 2021-07-01 20:50:11 +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

  • 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, Pfeiltasten, Vimkeys: Knoten bewegen

  • 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