next up previous contents index
Next: 3.2.2 Showing arcs and Up: 3.2 Using the Metanet Previous: 3.2 Using the Metanet

3.2.1 Showing a graph

The first thing we would like to do is to see the graph we are working with: use the show_graph function.

show_graph(g) displays the graph g in the current Metanet window. If there is no current Metanet window, a new Metanet window is created and it becomes the current Metanet window. If there is already a graph displayed in the current Metanet window, the new graph is displayed instead. The number of the current Metanet window, where the graph is displayed, is returned by show_graph.

Two optional arguments can be given to show_graph(g) after the graph list. If an optional argument is equal to the string 'new', a new Metanet window is created. If an optional argument is a positive number, it is the value of the scale factor when drawing the graph (see 3.1).

For instance show_graph(g,'new',2) displays the graph g in a new Metanet window with the scale factor equal to 2.


next up previous contents index
Next: 3.2.2 Showing arcs and Up: 3.2 Using the Metanet Previous: 3.2 Using the Metanet
Scilab Group