← 返回命令列表

Linux command

osage 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Layout clustered graph

osage -Tpng [graph.gv] -o [output.png]

Generate SVG output

osage -Tsvg [graph.gv] -o [output.svg]

Generate PDF output

osage -Tpdf [graph.gv] -o [output.pdf]

Set graph packing mode

osage -Gpackmode=columns [graph.gv] -Tpng -o [output.png]

说明

osage is a Graphviz layout engine for clustered graphs. It recursively lays out cluster subgraphs using an array packing algorithm, treating each cluster as a rectangle to be packed. At each level, the internals of each cluster subgraph are laid out first, then clusters and nodes are positioned relative to each other. The graph attributes pack and packmode control the layout at each level. Edges are routed after all nodes and clusters are positioned, based on the splines attribute.

参数

-T _format_
Output format (png, svg, pdf, dot, ps, etc.)
-o _file_
Output file
-G _attr=val_
Set graph attribute (e.g., pack, packmode)
-N _attr=val_
Set default node attribute
-E _attr=val_
Set default edge attribute
-K _layout_
Override layout engine
-O
Automatically generate output filename based on input
-v
Verbose mode
-V
Print version and exit

FAQ

What is the osage command used for?

osage is a Graphviz layout engine for clustered graphs. It recursively lays out cluster subgraphs using an array packing algorithm, treating each cluster as a rectangle to be packed. At each level, the internals of each cluster subgraph are laid out first, then clusters and nodes are positioned relative to each other. The graph attributes pack and packmode control the layout at each level. Edges are routed after all nodes and clusters are positioned, based on the splines attribute.

How do I run a basic osage example?

Run `osage -Tpng [graph.gv] -o [output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -T _format_ do in osage?

Output format (png, svg, pdf, dot, ps, etc.)