LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gvmap

creates geographical-style maps from graphs

TLDR

Create map from graph
$ gvmap [input.gv] > map.gv
copy
Include edges in the output
$ gvmap -e [input.gv] > map.gv
copy
Specify a color scheme (1: pastel, 2: blue-yellow, 3: white-red)
$ gvmap -c [2] [input.gv] > colored.gv
copy
Specify output file
$ gvmap -o [output.gv] [input.gv]
copy
Use top-level cluster subgraphs for clustering
$ gvmap -D [input.gv] > map.gv
copy

SYNOPSIS

gvmap [options] [files]

DESCRIPTION

gvmap takes as input a graph in DOT format with node position information (produced by a Graphviz layout engine such as sfdp) and groups related nodes into clusters, drawing them as geographical-style map regions.The tool analyzes graph structure to cluster nodes into countries or regions, adds visual styling with color schemes, and can include edges in the output. It is typically used as part of a pipeline with sfdp and gvmap.sh.

PARAMETERS

FILES

Input DOT files.
-o FILE
Output file.
-e
Include edges in the final output.
-c K
Use color scheme K (1: pastel, 2: blue-yellow, 3: white-red, etc.).
-C K
Maximum number of clusters. Default 0 (no limit).
-D
Use top-level cluster subgraphs to determine clustering.
-O
Do NOT do color assignment optimization.
-a K
Average number of artificial points added along bounding box of labels.
-m V
Generate a margin of V points around the drawing.
-r K
Number of random points used to define sea and lake boundaries. 0 for auto.
-s V
Depth of sea and lake shores in points. 0 for auto.
-t N
Make N attempts to improve cluster contiguity.
-v
Verbose mode.
-z COLOR
Set polygon line color. Default is black.
-h
Print usage and exit.

INSTALL

sudo apt install graphviz
copy
sudo dnf install graphviz
copy
sudo pacman -S graphviz
copy
sudo apk add graphviz
copy
sudo zypper install graphviz
copy
brew install graphviz
copy
nix profile install nixpkgs#graphviz
copy

CAVEATS

Part of Graphviz package. Input graphs must have node position information; run a layout engine like sfdp first. The gvmap.sh wrapper script handles the full pipeline automatically.

HISTORY

gvmap was developed as part of Graphviz at AT&T Labs for creating geographical-style graph visualizations.

SEE ALSO

dot(1), neato(1), sfdp(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid