Friday, September 18, 2020

Utils in Graphviz package

 There is a list of utils in graphviz:


acyclic - make directed graph acyclic
bcomps - biconnected components filter for graphs
ccomps - connected components filter for graphs
circo - filter for circular layout of graphs
cluster - find clusters in a graph and augment the graph with this information.
diffimg - Calculates intersection between two images
dijkstra - single-source distance filter
dot - filter for drawing directed graphs
gxl2gv,gv2gxl - GXL-GV converters
dotty - A Customizable Graph Editor
edgepaint - edge coloring to disambiguate crossing edges
fdp - filter for drawing undirected graphs
gc - count graph components
gml2gv,gv2gml - GML-DOT converters
graphml2gv - GRAPHML-DOT converter
gvcolor - flow colors through a ranked digraph
gvgen - generate graphs
gvmap - find clusters and create a geographical map highlighting clusters.
gvpack - merge and pack disjoint graphs
gvpr - graph pattern scanning and processing language
lefty - A Programmable Graphics Editor
lneato - A Customizable Graph Editor
mm2gv - Matrix Market-DOT converters
neato - filter for drawing undirected graphs
nop - pretty-print graph file
osage - filter for drawing clustered graphs
patchwork - filter for drawing clustered graphs as treemaps
prune - Prune directed graphs
sccmap - extract strongly connected components of directed graphs
sfdp - filter for drawing large undirected graphs
tred - transitive reduction filter for directed graphs
twopi - filter for radial layouts of graphs
unflatten - adjust directed graphs to improve layout aspect ratio
vimdot - Combined text editor and dot viewer 


I retrieved it with yum util repoquery:

yum -y install yum-utils
repoquery --list graphviz

Of course, I started with dot for me, but pretty look for all available capabilities in grapviz too.

Simple scenario is a image from dot file:

digraph {
    a -> b;
    b -> c;
    c -> d;
    d -> a;
}

I took this graph from examples. It is easy to generate such graph in C# code today. Then I want to convert it to image, I found this  command:

dot ./1.dot -Tpng > ./1.png




No comments:

debug magazine archive

  71 jounals still available on issuu with great story of netlabels time.  debug_mag Publisher Publications - Issuu