next up previous contents
Next: Miscellaneous Up: Manipulation and debugging of Previous: Manipulation and debugging of

Output of graphs via VCG

All functors of the sol-library and all CoSy-fSDL-functors incooperate print routines which print a graph in VCG format to a file. You may call these routines in a target predicate to look at the current shape of a graph. You have to supply a function which provides a text label for each node. This function takes a node and returns a label string which is printed in the file. E.g. for a hgraph this works as follows:


\begin{verblines}{* extern char* labelfunction(<NodeType>);
hgraph_print_vcgfile(''example.grl'',graph, labelfunction); *}
\end{verblines}



Uwe Assmann
1998-12-22