Skip to content

ASAMedia/SchorchtAxel_119659_Assignment1

Repository files navigation

GraphmakerTool

The GraphmakerTool is made for creating and manipulating graphs.

Screenshot Features:
  • Creating Graph
  • Adding nodes/edges
  • Deleting nodes/edges
  • Move nodes to customize graph
  • Add additional information to nodes
  • Viewmode/Editmode
  • 3 default graphs with different drawing options
The graph class contains all vertices and edges in separate dynamic lists. The vertices extend the circle and the edges the line class from javafx. This tactic preserves a fast and simple graphical output to the window pane. Edges and vertices which are bind together can be found by comparing the vertex location and the start/end location of the edge. Each vertex has a hashmap which contains additional information. All additional data such as name, connections, number and attributes must be added when adding a vertex to the graph.

Add node

Screenshot

By clicking the add button on the main window a popup window opens.
Through the given input fields a customized node can be added.

Note:

The following input layout has to be used, else errors could occur!
  • Number: int
  • Name: String
  • Attributes: String:String,String:String, ...
  • Connections: int,int,...


Delete node

Screenshot

To delete a node right click on it an select delete on the popup menu(View mode needs to be selected).

Add/Delete Edge

Screenshot Screenshot
To add a edge switch to edit mode and left click on the two vertices you wish to connect. To delete a edge switch to edit mode and right click on the two vertices you wish to connect.


Placement modi

Random placement

Circular placement

Force based placement

Screenshot Screenshot Screenshot
All vertices get a random position, so that they do not overlap each other. Vertices get circular ordered around a center point. Vertex position gets calculated on the basis of attracting and repulsive forces between the vertices


UML Diagram

Screenshot


Copyright (©) 2019 ASAMedia
Approval for reuse, processing and distribution will not be granted.
If you have any questions, please contact the author.

About

Tool to display and generate graphs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published