next up previous contents index
Next: Algorithms Up: The AGD Server Previous: The GraphWin Client   Contents   Index

The Command Line

The command line
agd_server list [ optfile ]

writes the list of available AGD algorithms and their default options in GML format to file optfile or the standard output stream (if optfile is missing).

The command line to draw a graph using the agd_server has the following form

agd_server alg gfile optfile iform oform
It reads a graph in format iform from file gfile, applies algorithm alg to it using the options from file optfile, and writes the result in format oform back to gfile. There are two possible file formats for iform and oform: gw for the GraphWin file format and gml for the GML format. A default option file can be created by calling agd_server list optfile and edited as needed.

Example: Let "graph.gw" contain the graph we want to draw using the agd_server in GraphWin file format. Suppose we want to use the Sugiyama algorithm with the options in the standard options file optfile. Then the corresponding command line looks as follows.

 
        agd_server Sugiyama graph.gw optfile gw gw

If everything worked correctly the file "graph.gw" contains the resulting layout of our input graph. If an error occured a diagnostic message is written to the file "graph.gw" .


next up previous contents index
Next: Algorithms Up: The AGD Server Previous: The GraphWin Client   Contents   Index

© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13