Linux command
circo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Render a graph with circular layout to PNG
circo -Tpng [input.dot] -o [output.png]
Render to SVG format
circo -Tsvg [input.dot] -o [output.svg]
Render to PDF format
circo -Tpdf [input.dot] -o [output.pdf]
Read from stdin and output to stdout
cat [input.dot] | circo -Tpng > [output.png]
Display available output formats
circo -T?
说明
circo is a Graphviz layout engine that produces circular graph layouts. It identifies biconnected components and arranges nodes on circles, minimizing edge crossings by placing edges on the circle's perimeter when possible. The tool uses a recursive radial algorithm for the block-cutpoint tree. Outerplanar components receive planar layouts. It is suitable for telecommunications networks and cyclic structures.
参数
- -T_format_
- Output format: png, svg, pdf, ps, dot, json, gif, jpg, and more
- -o _outfile_
- Write output to file instead of stdout
- -G_name=value_
- Set graph attribute
- -N_name=value_
- Set default node attribute
- -E_name=value_
- Set default edge attribute
- -K_layout_
- Override layout engine
- root=_nodename_
- Node to use as root of the layout
- mindist=_value_
- Minimum separation between nodes (default: 1.0)
- oneblock=_true_
- Draw entire graph around one circle
FAQ
What is the circo command used for?
circo is a Graphviz layout engine that produces circular graph layouts. It identifies biconnected components and arranges nodes on circles, minimizing edge crossings by placing edges on the circle's perimeter when possible. The tool uses a recursive radial algorithm for the block-cutpoint tree. Outerplanar components receive planar layouts. It is suitable for telecommunications networks and cyclic structures.
How do I run a basic circo example?
Run `circo -Tpng [input.dot] -o [output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -T_format_ do in circo?
Output format: png, svg, pdf, ps, dot, json, gif, jpg, and more