-
Notifications
You must be signed in to change notification settings - Fork 0
Editing a graph
Generally speaking, a graph can only be edited at design time (that is, when the underlying algorithm is not running).
This article describes default graph editing actions; however, please, keep in mind that scenarios can introduce variations on the default behavior described in this document - for example, by preventing specific actions, by overriding the default actions or even by introducing new features; consequently, always check the documentation dedicated to your current graph scenario.
-
To create a new vertex: left-click in the empty space
-
To create a new link: left-click on the source vertex (it must be the only item selected), then right-click on the target vertex
-
To select a vertex or link: left-click on it. To ease link selection, links become semi-transparent when the mouse cursor is over them
-
To define a selection rectangle: left-click in the empty space and drag the mouse. The selection rectangle will select any vertex or link within its boundaries
-
To clear the selection: right-click in the empty space
-
To move the current selection: left-click and drag any of the selected vertexes. One can't move links alone, of course
-
To add/remove vertexes/links to the current selection: hold CTRL and left-click on the visual object in question
-
To create an internal link handle: right-click on a link. An internal link handle is actually a joining point within a link, enabling you to define a multi-segment link
-
To move an internal link handle: left-click on it and drag it
-
To delete an internal link handle: right-click on it
-
To edit the properties of a single vertex/link: double-click on it when it is selected
-
To move a link label: left-click on it and drag it. Whenever you hover the mouse cursor over either that label or its related link, a segment joining them will appear
-
To delete the selected vertexes/links: press DEL on the keyboard
-
To move the canvas (pan): hold SHIFT and drag the mouse
-
To zoom in/zoom out: use the mouse WHEEL