Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
204281a
cluster.md diffimg.md dijkstra.md dotty.md gvedit.md gvgen.md gvmap.m…
Kabiirk Oct 6, 2025
ff83473
Merge branch 'tldr-pages:main' into doc-adding-more-graphviz-commands
Kabiirk Oct 6, 2025
7fafd84
gvdot: fixed examples
Kabiirk Oct 6, 2025
2b36b47
cluster, diffimg, dijkstra, dotty, gvedit, gvgen, gvmap: edit pages, …
Kabiirk Oct 6, 2025
fc97797
Update pages/common/cluster.md
Kabiirk Oct 6, 2025
0e3f4c7
Update pages/common/cluster.md
Kabiirk Oct 6, 2025
4b0d028
Update pages/common/diffimg.md
Kabiirk Oct 6, 2025
9f60951
Update pages/common/dijkstra.md
Kabiirk Oct 6, 2025
1f12731
Update pages/common/gvgen.md
Kabiirk Oct 6, 2025
7c1b6a5
Update pages/common/gvmap.md
Kabiirk Oct 6, 2025
703cf11
Update pages/common/gvedit.md
Kabiirk Oct 6, 2025
7d0c7d1
Update pages/common/diffimg.md: Shorter command definition
Kabiirk Oct 6, 2025
5a553eb
Update pages/common/cluster.md
Kabiirk Oct 7, 2025
39075aa
Update pages/common/cluster.md
Kabiirk Oct 7, 2025
0b4f1aa
Update pages/common/cluster.md
Kabiirk Oct 7, 2025
d44e19f
Update pages/common/cluster.md
Kabiirk Oct 7, 2025
3e2b08e
Update pages/common/gvgen.md
Kabiirk Oct 7, 2025
197a11a
Update pages/common/gvedit.md
Kabiirk Oct 7, 2025
9cd92a5
Update pages/common/gvmap.md
Kabiirk Oct 7, 2025
282dc51
Update pages/common/gvmap.md
Kabiirk Oct 7, 2025
880a04f
Update pages/common/gvmap.md
Kabiirk Oct 7, 2025
7b79f7b
Update pages/common/gvgen.md
Kabiirk Oct 7, 2025
3c53638
Update pages/common/dijkstra.md
Kabiirk Oct 7, 2025
a3c2a5e
Update pages/common/gvgen.md
Kabiirk Oct 7, 2025
082debd
Update pages/common/dijkstra.md
Kabiirk Oct 7, 2025
9a75b9a
Update pages/common/dotty.md
Kabiirk Oct 7, 2025
c05dd8c
Update pages/common/dotty.md
Kabiirk Oct 7, 2025
0f4508a
Update pages/common/dotty.md
Kabiirk Oct 7, 2025
a550eed
Update pages/common/dijkstra.md
Kabiirk Oct 7, 2025
c9441d6
Update pages/common/dotty.md
Kabiirk Oct 7, 2025
91fb11f
Update pages/common/diffimg.md: Modified description
Kabiirk Oct 7, 2025
0b9d8f9
Update pages/common/gvedit.md: Modifies -s flag
Kabiirk Oct 7, 2025
abc649c
Update pages/common/gvedit.md
Kabiirk Oct 7, 2025
284e4c9
Update pages/common/gvgen.md: Added mnemonics
Kabiirk Oct 7, 2025
8ccbd95
dotty pages: Fixed -lm and -el commands
Kabiirk Oct 7, 2025
d70b8af
dijkstra pages: Fixed definition for -p flag
Kabiirk Oct 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pages/common/cluster.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# cluster

> Find clusters in a graph and augment the graph with this information.
> More information: <https://graphviz.org/pdf/cluster.1.pdf>.

- Generate clusters that optimize modularity and print the result to stdout:

`cluster {{input.gv}}`

- Specify a target number of clusters (approximate) to generate (0 by default):

`cluster -C {{5}} {{input.gv}}`

- Use a different clustering method (0: modularity clustering, 1: modularity quality):

`cluster -c {{1}} {{input.gv}}`

- Save the output to a file:

`cluster -o {{output.gv}} {{input.gv}}`

- Enable verbose mode:

`cluster -v {{input.gv}}`
8 changes: 8 additions & 0 deletions pages/common/diffimg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# diffimg

> Generates an image where each pixel is the difference between corresponding pixels in the 2 source images.
> More information: <https://graphviz.org/pdf/diffimg.1.pdf>.
- Compare two images and output the difference image to `out.png`:

`diffimg {{path/to/image1}} {{path/to/image2}} {{path/to/outimage}}`
20 changes: 20 additions & 0 deletions pages/common/dijkstra.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# dijkstra

> Compute shortest-path distances from a single source node in a graph.
> More information: <https://graphviz.org/pdf/dijkstra.1.pdf>.

- Compute distances from a given source node in a graph file:

`dijkstra {{source_node file}}`

- Treat the graph as directed when computing distances:

`dijkstra -d {{source_node file}}`

- Set each node reachable from source_node to it's distance from the source_node:

`dijkstra -p {{source_node file}}`

- Assign large distance values to unreachable nodes:

`dijkstra -a {{source_node file}}`
22 changes: 22 additions & 0 deletions pages/common/dotty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# dotty

> A customizable interactive graph editor for the X Window System.
> Built on top of `dot` and `lefty`, it allows viewing and editing of graphs visually.
> Note: The dotty tool has been depracated, but this entry is retained to aid anyone still using it.

Check failure on line 5 in pages/common/dotty.md

View workflow job for this annotation

GitHub Actions / build

depracated ==> deprecated
> More information: <https://graphviz.org/pdf/dotty.1.pdf>.
- Open a graph file (.gv or .dot) in the Dotty editor:

`dotty {{path/to/graph.gv}}`

- Start Dotty with the version information displayed:

`dotty -V`

- Set the layout mode to synchronous (`sync`) or asynchronous (`async`):

`dotty -lmmode {{sync|async}} {{path/to/graph.gv}}`

- Set the message verbosity level (`0` for minimal, `1` for detailed):

`dotty -ellev {{1}} {{path/to/graph.gv}}`
20 changes: 20 additions & 0 deletions pages/common/gvedit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# gvedit

> Simple Graphviz graph editor and viewer.
> More information: <https://graphviz.org/pdf/gvedit.1.pdf>.

- Open a Graphviz file in the editor:

`gvedit {{path/to/graph.gv}}`

- Scale coordinates from points to inches (useful for layouts generated by Graphviz tools):

`gvedit -s {{path/to/graph.gv}}`

- Enable verbose mode:

`gvedit -v {{path/to/graph.gv}}`

- Display usage information:

`gvedit -?`
32 changes: 32 additions & 0 deletions pages/common/gvgen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# gvgen

> Generate simple, structured abstract graphs.
> More information: <https://graphviz.org/pdf/gvgen.1.pdf>.

- Generate a cycle with 10 vertices and edges:

`gvgen -c {{10}}`

- Generate a 4×3 grid:

`gvgen -g {{4,3}}`

- Generate a binary tree of height 5:

`gvgen -t {{5}}`

- Generate a complete bipartite graph with 3 and 4 vertices:

`gvgen -b {{3,4}}`

- Create a random graph and write it to a file:

`gvgen -r {{10,5}} -o {{random.gv}}`

- Generate a directed graph with verbose output:

`gvgen -d -v -c {{6}}`

- Display usage information:

`gvgen -?`
28 changes: 28 additions & 0 deletions pages/common/gvmap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# gvmap

> Finds clusters and creates a geographical map highlighting clusters.
> More information: <https://graphviz.org/pdf/gvmap.1.pdf>.

- Generate a clustered map layout from a DOT format graph:

`gvmap {{graph.gv}} -o {{output.xdot}}`

- Generate a map using existing cluster subgraphs from the input:

`gvmap -D {{graph.gv}}`

- Include graph edges in the output map:

`gvmap -e {{graph.gv}} -o {{output.xdot}}`

- Specify a color scheme (1: pastel, 2: blue-yellow, 3: white-red, etc.):

`gvmap -c {{2}} {{graph.gv}} -o {{output.xdot}}`

- Set the maximum number of clusters (by default 0, meaning there is no limit):

`gvmap -C {{10}} {{graph.gv}} -o {{output.xdot}}`

- Only draw cluster 2 (by default, all clusters are drawn):

`gvmap -highlight={{2}} {{graph.gv}} -o {{output.xdot}}`