Debian Codegraph @

cmd/tools/gml2gv.1

raw
1 .TH GML2GV,GV2GML 1 "24 June 2011"
2 .SH NAME
3 gml2gv,gv2gml \- GML-DOT converters
4 .SH SYNOPSIS
5 .B gml2gv
6 [
7 .B \-?v
8 ]
9 [
10 .BI \-g gname
11 ]
12 [
13 .BI \-o outfile
14 ]
15 [
16 .I files
17 ]
18 .br
19 .B gv2gml
20 [
21 .B \-y
22 ]
23 [
24 .B \-?
25 ]
26 [
27 .BI \-o outfile
28 ]
29 [
30 .I files
31 ]
32
33 .SH DESCRIPTION
34 .B gml2gv
35 converts a graph specified in the GML format to a graph in the GV (formerly DOT) format.
36 .B gv2gml
37 converts a graph specified in the GV format to a graph in the GML format.
38 .SH OPTIONS
39 The following options are supported:
40 .TP
41 .B \-v
42 Turns on verbose mode
43 .TP
44 .B \-y
45 Uses attributes according to yWorks.com documentation instead of the GML
46 specification.
47 .TP
48 .B \-?
49 Prints usage information and exits.
50 .TP
51 .BI \-g "gname"
52 The string \fIgname\fP is used as the name of the generated graph.
53 If multiple graphs are generated, subsequent graphs use the name
54 \fIgname\fP appended with an integer.
55 .TP
56 .BI \-o "outfile"
57 Prints output to the file \fIoutfile\fP. If not given, \fBgml2gv\fP
58 uses stdout.
59 .TP
60 .SH OPERANDS
61 The following operand is supported:
62 .TP 8
63 .I files
64 Names of files containing 1 or more graphs in GML.
65 If no
66 .I files
67 operand is specified,
68 the standard input will be used.
69 .SH RETURN CODES
70 Return \fB0\fP
71 if there were no problems during conversion;
72 and non-zero if any error occurred.
73 .SH "LIMITATIONS"
74 As both the graph and graphics models of GV and GML differ significantly, the
75 conversion is at best approximate. In particular, it is not clear how multiedges
76 are differentiated in GML, so multiedges are created in GV with no user-available
77 key. Also, no attribute information is lost, in that
78 any GML attributes that aren't converted to GV equivalents are retained as
79 attributes in the output graph.
80 .P
81 At present,
82 .B gv2gml
83 does not support subgraphs and clusters. In addition, there does not appear to be
84 a standard mechanism for specifying default node and edge attributes in GML, so
85 any attributes are repeated for every node and edge.
86 .SH AUTHORS
87 Emden R. Gansner <[email protected]>
88 .SH "SEE ALSO"
89 dot(1), libcgraph(3)