1GML2GV,GV2GML(1) General Commands Manual GML2GV,GV2GML(1)
2
3
4
6 gml2gv,gv2gml - GML-DOT converters
7
9 gml2gv [ -?v ] [ -ggname ] [ -ooutfile ] [ files ]
10 gv2gml [ -? ] [ -ooutfile ] [ files ]
11
12
14 gml2gv converts a graph specified in the GML format to a graph in the
15 GV (formerly DOT) format. gv2gml converts a graph specified in the GV
16 format to a graph in the GML format.
17
19 The following options are supported:
20
21 -v Turns on verbose mode
22
23 -? Prints usage information and exits.
24
25 -ggname
26 The string gname is used as the name of the generated graph. If
27 multiple graphs are generated, subsequent graphs use the name
28 gname appended with an integer.
29
30 -ooutfile
31 Prints output to the file outfile. If not given, gml2gv uses
32 stdout.
33
34
35 OPERANDS
36 The following operand is supported:
37
38 files Names of files containing 1 or more graphs in GML. If no files
39 operand is specified, the standard input will be used.
40
42 Return 0 if there were no problems during conversion; and non-zero if
43 any error occurred.
44
46 As both the graph and graphics models of GV and GML differ signifi‐
47 cantly, the conversion is at best approximate. In particular, it is not
48 clear how multiedges are differentiated in GML, so multiedges are cre‐
49 ated in GV with no user-available key. Also, no attribute information
50 is lost, in that any GML attributes that aren't converted to GV equiva‐
51 lents are retained as attributes in the output graph.
52
53 At present, gv2gml does not support subgraphs and clusters. In addi‐
54 tion, there does not appear to be a standard mechanism for specifying
55 default node and edge attributes in GML, so any attributes are repeated
56 for every node and edge.
57
59 Emden R. Gansner <erg@research.att.com>
60
62 dot(1), libcgraph(3)
63
64
65
66 24 June 2011 GML2GV,GV2GML(1)