LinuxCommandLibrary

gvgen

generates various types of graphs in DOT format

TLDR

Generate star graph

$ gvgen -S [5] > star.gv
copy
Generate grid graph
$ gvgen -g [3] [4] > grid.gv
copy
Generate complete graph
$ gvgen -K [6] > complete.gv
copy
Generate tree
$ gvgen -t [3] [4] > tree.gv
copy
Generate random graph
$ gvgen -R [10] [20] > random.gv
copy

SYNOPSIS

gvgen [options]

DESCRIPTION

gvgen generates various types of graphs in DOT format. It creates standard graph structures useful for testing, visualization, and algorithms.
The tool supports stars, grids, trees, complete graphs, cycles, and random graphs. Output is in Graphviz format for visualization.

PARAMETERS

-S N

Star graph with N points.
-g M N
M x N grid graph.
-K N
Complete graph on N nodes.
-t D B
Tree with depth D, branching B.
-R N E
Random graph with N nodes, E edges.
-c N
Cycle graph.
-p N
Path graph.
-o FILE
Output file.
--help
Display help information.

CAVEATS

Part of Graphviz package. Random graphs vary each run. Large graphs may be slow to render.

HISTORY

gvgen was developed as part of the Graphviz project to provide sample graph generation for testing and demonstration.

SEE ALSO

dot(1), neato(1), graphviz(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community