`
yidongkaifa
  • 浏览: 4062325 次
文章分类
社区版块
存档分类
最新评论

Command-line Invocation

 
阅读更多
All Graphviz programs have a similar invocation:
cmd[flags] [input files]
If no input files are supplied, the program reads fromstdin.

Flags

-Gname[=value]
Set a graph attribute, with defaultvalue=true.
-Nname[=value]
Set a default node attribute, with defaultvalue=true.
-Ename[=value]
Set a default edge attribute, with defaultvalue=true.
-Klayout
Specifies which default layout algorithm to use, overriding the default from the command name. For example, runningdot -Kneatois equivalent to runningneato.
-Tformat[:renderer[:formatter]]
Set output language to one of thesupported formats. By default,attributed dotis produced.

Depending on how Graphviz was built, there may be multiple renderers for generating a particular output format, and multiple formatters for creating the final output. For example, a typical installation can producePNGoutput using either the Cairo or GD library. The desired rendering engine can be specified after a colon. If there are multiple formatting engines available, the desired one can be specified in a similar fashion after the rendering engine. Thus,-Tpng:cairospecifies PNG output produced by Cairo (using the Cairo's default formatter), and-Tpng:cairo:gdspecifies PNG output produced by Cairo formatted using the GD library.

If no renderer is specified, or a renderer but no formatter, the default one is invoked. The flag-Tformat:produces a list of all of the renderers available for the specifiedformat, the first one listed with a prefix matchingformatbeing the default. Using the-vflag, described below, will print which format, renderer, and formatter are actually used.

-V
Emit version information and exit.
-llibrary
User-supplied, device-dependent library text. Multiple flags may be given. These strings are passed to the code generator at the beginning of output.

For PostScript output, they are treated as file names whose content will be included in the preamble after the standard preamble. Iflibraryis the empty string"", the standard preamble is not emitted.

-n[num]
Sets no-op flag inneato. If set,neatoassumes nodes have already been positioned and all nodes have aposattribute giving the positions. It then performs an optional adjustment to remove node-node overlap, depending on the value of theoverlapattribute, computes the edge layouts, depending on the value of thesplinesattribute, and emits the graph in the appropriate format. Ifnumis supplied, the following actions occur:
num= 1
Equivalent to-n.
num> 1
Use node positions as specified, with no adjustment to remove node-node overlaps, and use any edge layouts already specified by theposattribute.neatocomputes an edge layout for any edge that does not have aposattribute. As usual, edge layout is guided by thesplinesattribute.
-ooutfile
Write output to fileoutfile. By default, output goes tostdout.
-O
Automatically generate output file names based on the input file name and the various output formats specified by the-Tflags.
-P
Automatically generate a graph that shows the plugin configuration of the current executable. e.g.dot -P -Tps | lpr
-q
Suppress warning messages.
-s[scale]
Set input scale toscale. If this value is omitted, 72.0 is used. This number is used to convert the point coordinate units used in theposattribute into inches, which is what is expected by neato and fdp. Thus, feeding the output of a graph laid out by one program into neato or fdp almost always requires this flag. Ignored if the-nflag is used.
-v
Verbose mode
-x
Inneato, on input, prune isolated nodes and peninsulas. This removes uninteresting graph structure and produces a less cluttered drawing.
-y
By default, the coordinate system used in generic output formats, such asattributed dot,extended dot,plainandplain-ext, is the standard cartesian system with the origin in the lower left corner, and with increasing y coordinates as points move from bottom to top. If the-yflag is used, the coordinate system is inverted, so that increasing values of y correspond to movement from top to bottom.
-?
Print usage information, then exit.

If multiple-Tflags are given, drawings of the graph are emitted in each of the specified formats. Multiple-oflags can be used to specify the output file for each format. If there are more formats than files, the remaining formats are written tostdout.

Note that the-G,-Nand-Eflags override any initial attribute declarations in the input graph, i.e., those attribute statements appearing before any node, edge or subgraph definitions. In addition, these flags cause the related attributes to be permanently attached to the graph. Thus, if attributed dot is used for output, the graph will have these attributes.

Environment Variables

GDFONTPATH
List of pathnames giving directories which a program should search for fonts. Overridden byDOTFONTPATH.Used only if Graphviz is not built with thefontconfiglibrary
DOTFONTPATH
List of pathnames giving directories which a program should search for fonts. Overridden byfontpath.Used only if Graphviz is not built with thefontconfiglibrary
SERVER_NAME
If defined, this indicates that the software is running as a web application, which restricts access to image files. SeeGV_FILE_PATH.
GV_FILE_PATH
IfSERVER_NAMEis defined, image files are restricted to exist in one of the directories specified byGV_FILE_PATH. This last is a list of directory pathnames, separated by semicolons in Windows or by colons otherwise. Note that sometimes, when using one of the layout programs in a web script, it is not enough to use an export command but rather the variables should be set when the command is run, for example,
SERVER_NAME=xxx GV_FILE_PATH="images:etc/images:/usr/share/images" dot -Tpng -o x.png x.gv

Note that the image files must really reside in one of the specified directories. If the image file is specified as an absolute or relative pathname, a warning is given and only the base name is used.

GVBINDIR
Indicates which directory contains the Graphviz config file and plug-in libraries. If it is defined, the value overrides any other mechanism for finding this directory. If Graphviz is properly installed, it should not be needed, though it can be useful for relocation on platforms not running Linux or Windows.
分享到:
评论

相关推荐

    stanford tagger

    The package includes components for command-line invocation, running as a server, and a Java API. The tagger code is dual licensed (in a similar manner to MySQL, etc.). Open source licensing is under...

    stanford parser

    The package includes components for command-line invocation, a Java parsing GUI, and a Java API. The parser code is dual licensed (in a similar manner to MySQL, etc.). Open source licensing is under ...

    Bochs - The cross platform IA-32 (x86) emulator

    - NE2K: Fixed "send buffer" command issue on big endian hosts - USB - converted common USB code plus devices to the new 'usb_common' plugin Now the USB device classes no longer exist twice if both...

    HBuilder X打包苹果操作步骤

    Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -sdk iphoneos16.4 -project [PackagePath]/HBuilder.xcodeproj -archivePath [PackagePath]/XArchive/HBuilder....

    2009 达内Unix学习笔记

    DOS内部命令 用于退出当前的命令处理器(COMMAND.COM) 恢复前一个命令处理器。 Ctrl+d 跟exit一样效果,表中止本次操作。 logout 当csh时可用来退出,其他shell不可用。 clear 清屏,清除(之前的内容并未删除,只是...

    Java2核心技术卷I+卷2:基础知识(第8版) 代码

    Using the Command-Line Tools 22 Using an Integrated Development Environment 25 Running a Graphical Application 28 Building and Running Applets 31 Chapter 3: Fundamental Programming Structures ...

    Flag-Parsing:discord.py机器人的实用程序,允许将标志传递到命令中

    如果希望使用旧式签名,请改用command.old_signature 。 基本示例用法: import discord from discord . ext import flags , commands bot = commands . Bot ( "!" ) # Invocation: !flags --count=5 --string ...

    xxcopy程序、进度条和说明

    in command line mode (DOS Box). XXCOPY has grown to be not just a file copy program but also a file removal, search and list utility. Its short name preserving capability makes it ideal to clone a...

    acpi控制笔记本风扇转速

    AcpiExec - Added the "-t" command line option to enable the serialized mode of the AML interpreter. ---------------------------------------- 31 August 2006. Summary of changes for version 20060831: ...

    python3.6.5参考手册 chm

    PEP 389: Argparse Command Line Parsing Module PEP 391: Dictionary Based Configuration for Logging PEP 3148: The concurrent.futures module PEP 3147: PYC Repository Directories PEP 3149: ABI Version...

    带注释的Bootstrap.java

    import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; ...

    Database design and development tool BDB Professional V2.6

    Besides the normal envocation, BDB supply the support of outer command line invoking the database auto-installation. 3.The database auto-update. Carry out the database auto-update without affecting ...

    BDB 2007 Professional Edition V2.6

    Besides the normal envocation, BDB supply the support of outer command line invoking the database auto-installation. 3.The database auto-update. Carry out the database auto-update without affecting ...

    database design and database deployment tool BDB 2007 Developer V2.6

    Besides the normal envocation, BDB supply the support of outer command line invoking the database auto-installation. 3.The database auto-update. Carry out the database auto-update without affecting ...

    database design and database deployment tool BDB 2007 Professional V2.6

    Besides the normal envocation, BDB supply the support of outer command line invoking the database auto-installation. 3.The database auto-update. Carry out the database auto-update without affecting ...

    jdk-9.0.1_doc-all 最新版

    Defines the implementation of the system Java compiler and its command line equivalent, javac, as well as javah. jdk.crypto.cryptoki Provides the implementation of the SunPKCS11 security provider. ...

    Using Perl For Web Programming.pdf

    Command-Line Arguments H Program Layout H G Data Types Scalars H Arrays H Associative Arrays H File Handles H G Special Variables Environment Variables H Program Arguments H Current Line H ...

    数据库设计,建模和部署工具BDBPro3.1-setup_EN

    Besides the normal envocation, BDB supply the support of outer command line invoking the database auto-installation. 除了正常的envocation , bdb供应的支持外的命令行援引该数据库的自动安装。 · ...

    Debugging with GDB --2007年

    Stepping to the next line in the source program . . . . . . . . . . . . Stepping into a subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examining the Stack . . . . . . . . . ....

    BDB Professional Edition v2.7

    Besides the normal envocation, BDB supply the support of outer command line invoking the database auto-installation. 3.The database auto-update. Carry out the database auto-update without affecting ...

Global site tag (gtag.js) - Google Analytics