-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
cluster, diffimg, dijkstra, dotty, gvedit, gvgen, gvmap: add page #18502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Kabiirk
wants to merge
36
commits into
tldr-pages:main
Choose a base branch
from
Kabiirk:doc-adding-more-graphviz-commands
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+153
−0
Open
Changes from 29 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 ff83473
Merge branch 'tldr-pages:main' into doc-adding-more-graphviz-commands
Kabiirk 7fafd84
gvdot: fixed examples
Kabiirk 2b36b47
cluster, diffimg, dijkstra, dotty, gvedit, gvgen, gvmap: edit pages, …
Kabiirk fc97797
Update pages/common/cluster.md
Kabiirk 0e3f4c7
Update pages/common/cluster.md
Kabiirk 4b0d028
Update pages/common/diffimg.md
Kabiirk 9f60951
Update pages/common/dijkstra.md
Kabiirk 1f12731
Update pages/common/gvgen.md
Kabiirk 7c1b6a5
Update pages/common/gvmap.md
Kabiirk 703cf11
Update pages/common/gvedit.md
Kabiirk 7d0c7d1
Update pages/common/diffimg.md: Shorter command definition
Kabiirk 5a553eb
Update pages/common/cluster.md
Kabiirk 39075aa
Update pages/common/cluster.md
Kabiirk 0b4f1aa
Update pages/common/cluster.md
Kabiirk d44e19f
Update pages/common/cluster.md
Kabiirk 3e2b08e
Update pages/common/gvgen.md
Kabiirk 197a11a
Update pages/common/gvedit.md
Kabiirk 9cd92a5
Update pages/common/gvmap.md
Kabiirk 282dc51
Update pages/common/gvmap.md
Kabiirk 880a04f
Update pages/common/gvmap.md
Kabiirk 7b79f7b
Update pages/common/gvgen.md
Kabiirk 3c53638
Update pages/common/dijkstra.md
Kabiirk a3c2a5e
Update pages/common/gvgen.md
Kabiirk 082debd
Update pages/common/dijkstra.md
Kabiirk 9a75b9a
Update pages/common/dotty.md
Kabiirk c05dd8c
Update pages/common/dotty.md
Kabiirk 0f4508a
Update pages/common/dotty.md
Kabiirk a550eed
Update pages/common/dijkstra.md
Kabiirk c9441d6
Update pages/common/dotty.md
Kabiirk 91fb11f
Update pages/common/diffimg.md: Modified description
Kabiirk 0b9d8f9
Update pages/common/gvedit.md: Modifies -s flag
Kabiirk abc649c
Update pages/common/gvedit.md
Kabiirk 284e4c9
Update pages/common/gvgen.md: Added mnemonics
Kabiirk 8ccbd95
dotty pages: Fixed -lm and -el commands
Kabiirk d70b8af
dijkstra pages: Fixed definition for -p flag
Kabiirk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [C]lusters (approximate) to generate (0 by default): | ||
|
||
`cluster -C {{5}} {{input.gv}}` | ||
|
||
- Use a different [c]lustering method (0: modularity clustering, 1: modularity quality): | ||
|
||
`cluster -c {{1}} {{input.gv}}` | ||
|
||
- Save the [o]utput to a file: | ||
|
||
`cluster -o {{output.gv}} {{input.gv}}` | ||
|
||
- Enable [v]erbose mode: | ||
|
||
`cluster -v {{input.gv}}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [d]irected 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}}` | ||
Managor marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
- [a]ssign large distance values to unreachable nodes: | ||
|
||
`dijkstra -a {{source_node file}}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# dotty | ||
|
||
> A customizable interactive graph editor for the X Window System. | ||
> Note: The dotty tool has been depracated, but this entry is retained to aid anyone still using it. | ||
> 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 [V]ersion information displayed: | ||
|
||
`dotty -V` | ||
|
||
- Set the [l]ayout [m]ode to synchronous or asynchronous: | ||
|
||
`dotty -lmmode {{sync|async}} {{path/to/graph.gv}}` | ||
Kabiirk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
- Set the message verbosity level (`0` for minimal, `1` for detailed): | ||
Kabiirk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
`dotty -ellev {{1}} {{path/to/graph.gv}}` | ||
Kabiirk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | ||
Kabiirk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
`gvedit -s {{path/to/graph.gv}}` | ||
|
||
- Enable verbose mode: | ||
Kabiirk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
`gvedit -v {{path/to/graph.gv}}` | ||
|
||
- Display help: | ||
|
||
`gvedit -?` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
Kabiirk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
`gvgen -c {{10}}` | ||
|
||
- Generate a 4×3 [g]rid: | ||
|
||
`gvgen -g {{4,3}}` | ||
|
||
- Generate a binary [t]ree of height 5: | ||
|
||
`gvgen -t {{5}}` | ||
|
||
- Generate a complete [b]ipartite graph with 3 and 4 vertices: | ||
|
||
`gvgen -b {{3,4}}` | ||
|
||
- Create a [r]andom graph and [o]utput it to a file: | ||
|
||
`gvgen -r {{10,5}} -o {{random.gv}}` | ||
|
||
- Generate a [d]irected graph with [v]erbose output: | ||
|
||
`gvgen -d -v -c {{6}}` | ||
|
||
- Display help: | ||
|
||
`gvgen -?` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [o]utput map: | ||
|
||
`gvmap -e {{graph.gv}} -o {{output.xdot}}` | ||
|
||
- Specify a [c]olor scheme (1: pastel, 2: blue-yellow, 3: white-red, etc.): | ||
|
||
`gvmap -c {{2}} {{graph.gv}} -o {{output.xdot}}` | ||
|
||
- Set the maximum number of [C]lusters (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}}` | ||
Managor marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.