Linux command
gv2gxl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert DOT to GXL
gv2gxl [input.gv] -o [output.gxl]
Output to stdout
gv2gxl [input.dot]
Process multiple files
gv2gxl [file1.gv] [file2.gv] -o [output.gxl]
说明
gv2gxl converts between graphs represented in GXL (Graph eXchange Language) and Graphviz GV/DOT format. GXL is an XML-based format for graph interchange. Unless a conversion type is specified with -g or -d, the tool deduces the conversion direction from the input file suffix: a ".gv" suffix converts from GV to GXL, and a ".gxl" suffix converts from GXL to GV. When input is from a pipe with no flags, the conversion direction is determined by the executable name: gv2gxl converts from GV to GXL. The commands dot2gxl, gv2gxl, and gxl2dot are aliases of gxl2gv.
参数
- -g
- Force input to be treated as GV format and generate GXL output, ignoring file extension
- -d
- Force input to be treated as GXL format and generate GV output, ignoring file extension
- -o _outfile_
- Write output to the specified file instead of stdout
- -?
- Display usage information and exit
FAQ
What is the gv2gxl command used for?
gv2gxl converts between graphs represented in GXL (Graph eXchange Language) and Graphviz GV/DOT format. GXL is an XML-based format for graph interchange. Unless a conversion type is specified with -g or -d, the tool deduces the conversion direction from the input file suffix: a ".gv" suffix converts from GV to GXL, and a ".gxl" suffix converts from GXL to GV. When input is from a pipe with no flags, the conversion direction is determined by the executable name: gv2gxl converts from GV to GXL. The commands dot2gxl, gv2gxl, and gxl2dot are aliases of gxl2gv.
How do I run a basic gv2gxl example?
Run `gv2gxl [input.gv] -o [output.gxl]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -g do in gv2gxl?
Force input to be treated as GV format and generate GXL output, ignoring file extension