Manual
Editor
The Editor serves as the main frame of the program where the menu is located.
- Creating, loading and saving graphs - options can be found in the menu tab File.
Graph is always saved as XML file.
-
Working with a graph
- Graph can be zoomed in and out using mouse wheel while holing control key.
- Position of a verticle can be changed using the mouse.
- To create a new verticle press left alt keyand click the righht mouse button. Name od each verticle must be unique and non-empty.
- New edge can be added by dragging the mouse from the center of the verticle to another verticle. Editor does not allow free edges or edges not connecting two vertices.
- Vymazání vrcholu nebo hrany je možné pomocí klávesy Delete.
- The node can be selected as Start Node using toolbar button or menu tab Edit.
Such a node changes its color to red.
- The node can be also selected as End Node using toolbar button or menu tab Edit.
Such a node changes its color to green.
- It is possible to use shortcut keys for copying and pasting .
-
Style Setting
- Style can be set in the menu tab Edit → Style Settings
- Style is selected from the menu and can be changed by changing text description.
By default, values like color, line thickness and shape can be entered. All options for styles can be found in source file mxConstants.java of JGraphX library.
- When making changes, a preview is displayed where there are two vertices and one edge. Preview changes always when text description is changed. Right verticle is set as standard view for a vertice of the current graph.
-
Changing theme
- Theme can be change using menu tab Window. Standard functionality is tested on operating systems MS Windows and Ubuntu, Linux. Other themes serve as an option for users. They may be better displayed in user's configuration.
Simulate
Simulation of each algorithm can be started from the toolbar menu button Algorithms.
After pressing the button, a pop up menu is displayed and user can choose an algorithm for simulation. As an input graph is used the one from the editor frame. Simulation start in its own window.
-
Edit and Interact Graph
- Editing, zooming in and out work the same way as it does in editor frame. In simulation window user can not change the structure of the graph.Changes, that are made are valid only for current simulation and can not be saved.
- In the interactive part, the vertices and edges can be selected by clicking on the appropriate place in the graph. Entering values is done by double-clicking the mouse. Special case is with algorithm DFS, where the type of the edge is selected from the context menu directly at the edge.
-
Variables panel
- Dragging mouse in the left part of panel moves the panel to the dialog. Closing this dialog returns panel back to frame to the original positon.
-
Pseudocode Panel
- Right click displays context menu
- Breakpoints are entered by double-clicking in the row number area.
- Centering the graph and pseudocode panel can be turned off in the menu.
- Interactive mode can be turned using the menu. It is possible to turn it off and on repeatedly during simulation
- The option of returning panels back to the simulation frame is also present in the context menu of the panel.
-
Control
- Buttons available: step backward, restart, run according to speed slider,maximum speed run, step forward and next breakpoint. Step backward and forward can be done by pressing the left and right keys. Maximum speed run can be done by pressing the down key.
- Under the buttons is speed slider, where the delay between the simulation steps can be set.