Graph-Editor, as the name suggests, is a directed unweighted graph editor in which you can:
- Add/remove a node
- Redominate a node
- Change the color of a node
- Insert/Delete a directed edge, specifying the direction
- Save/Load a graph
- Undo/Redo the operations performed
In mathematics, and more specifically in graph theory, a directed graph is a graph that is made up of a set of vertices connected by edges, where the edges have a direction associated with them.
Source: Wikipedia
Model–view–controller is a software design pattern commonly used for developing user interfaces that divides the related program logic into three interconnected elements. This is done to separate internal representations of information from the ways information is presented to and accepted from the user.
Source: Wikipedia
Graph-Editor has strong adhesion to the MVC (Model–view–controller) Pattern, with 37 classes in total. It uses Java Swing's components.
The architecture is pointed out in the figure below, obtained using the Graph-Editor itself.
The development of this project has been given as an assignment at the University Of Groningen. It's also present a report in which a more detailed explanation of the project is given.
Download grapheditor.jar
and then run:
$ java -jar grapheditor.jar
To load a graph during the start of the program:
$ java -jar grapheditor.jar "path/to/<filename>.graph"