FB3Group BKB |
HomeService and SupportManual
|
||||||
| |||||||
Loading
Tutorial Exercise 1.1: Loading a Graph from File
After starting uDraw(Graph) without any options or arguments, an
empty base window will appear
(
Now we will load a graph for visualization.
Graphs are stored in files with a "*.udg" suffix.
They contain a so called "term representation".
This format only defines the structure of a graph, but has no layout
information like the coordinates of a particular node.
Refer to the
(The rest of this exercise applies only to UNIX® and LINUX® systems. On Microsoft® and on Mac OS® X platforms, you will get the well-known standard Windows® file browser instead of the one discussed here.) The file browser has two different lists: One for the directories inside the current directory and one for the files in the current directory. The current directory is always displayed in the selection field of the file browser. Now you can browse through the directories of the file system of your computer by double-clicking the list elements of the directories view with the left mouse button (the left mouse button is used to select or manipulate objects visible on the screen, whereby the right button is used to choose from a pop-up/context menu). A double-click on '..', the first element of the directory list, will move to the parent directory. You can use the vertical scrollbars at the right side of the lists to move the scrolling region if there is not enough place to show all directories or files. Finally, go into the "samples/graphs" directory of the uDraw(Graph) distribution. Ask your administrator if you are not sure about the location where the distribution is installed on your file system. When you are inside the "samples/graphs" directory, click on the types option button to select the "Graph Files" filter. This will remove all files without suffix "*.udg" from the files view. Now double-click on file "graph_example.udg" to load this graph in uDraw(Graph). This action will automatically close the file browser.
End of Exercise 1.1.
|
|||||||
|
|||||||