LinuxCommandLibrary

dijkstra

shortest path graph algorithm filter

TLDR

Check Graphviz graph for proper layout
$ dijkstra [input.dot]
copy
Output processed graph
$ dijkstra [input.dot] -o [output.dot]
copy

SYNOPSIS

dijkstra [options] [files]

DESCRIPTION

dijkstra is a specialized Graphviz filter implementing Dijkstra's shortest path algorithm for graph analysis. It reads graph descriptions in DOT format, computes shortest paths between nodes, and outputs modified graphs with calculated distances or path information.
The tool can calculate distance matrices showing the shortest path length between all pairs of nodes in a graph. It modifies graph attributes to reflect path calculations, which can then be used by other Graphviz layout tools for visualization.
This utility is part of the Graphviz suite and is primarily used for network analysis, routing problems, and graph algorithm research. It processes graphs with weighted edges and can output results in various formats compatible with other Graphviz tools.

PARAMETERS

-o file

Output file.
-d
Output distance matrix.

SEE ALSO

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard