← 返回命令列表

Linux command

gvpr 命令

网络

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

常用示例

Run gvpr script

gvpr -f [script.gvpr] [input.gv]

Inline program

gvpr 'N[color=="red"]' [input.gv]

Output to file

gvpr -o [output.gv] -f [script.gvpr] [input.gv]

Select nodes by attribute

gvpr 'N[degree>3]' [graph.gv]

说明

gvpr is a graph stream editor, similar to awk for graphs. It processes Graphviz graphs using a pattern-action programming language. The tool can filter, transform, and analyze graphs. It supports node and edge selection, attribute manipulation, and graph restructuring.

参数

-f _FILE_
Read program from file.
-o _FILE_
Output file.
-c
Check syntax only.
-i
Print node info.
-V
Verbose mode.
-?
Display help information.

FAQ

What is the gvpr command used for?

gvpr is a graph stream editor, similar to awk for graphs. It processes Graphviz graphs using a pattern-action programming language. The tool can filter, transform, and analyze graphs. It supports node and edge selection, attribute manipulation, and graph restructuring.

How do I run a basic gvpr example?

Run `gvpr -f [script.gvpr] [input.gv]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _FILE_ do in gvpr?

Read program from file.