Skip to content

Instantly share code, notes, and snippets.

View steveroush's full-sized avatar

steveroush

  • nope
  • colorado, usa
View GitHub Profile
@steveroush
steveroush / gvEd.gvpr
Created May 30, 2026 03:23
gvEd.gvpr - a partial macro feature for Graphviz
/********************************************************************
gvEd.gvpr - edit Graphviz attributes
gvEd.gvpr provides a partial macro-like capability to Graphviz
- a pseudo attribute/macro can be defined and then referenced
in the value component of later attribute references
usage:
gvpr -cf gvEd.gvpr
@steveroush
steveroush / gvInclude.gvpr
Created May 30, 2026 02:07
gvInclude.gvpr - Graphviz #include feature
/**************************************************************
gvInclude.gvpr
- uses gvpr as a simple awk-like language, NOT as a Graphviz-parser
- recognives "#include filename" instruction and inserts the contents of "filename"
- #include files can be nested
- #include files can be included multiple times
usage: gvpr -aFmygvfile.gv
**************************************************************/
@steveroush
steveroush / !illustrateDot.md
Created March 10, 2026 20:30
illustrateDot - showing how dot (a Graphviz program) works

illustrateDot - showing how dot (a Graphviz program) works

This shell script and gvpr program show the phases (steps) that dot performs,

The dot document https://www.graphviz.org/documentation/TSE93.pdf) (refers to passes. The dot program refers to Phases. (e.g. dot -Gphase=1 myfile.gv will terminate after completing phase 1)

@steveroush
steveroush / dot_performance_world.gv
Last active February 9, 2026 21:36
Graphviz / dot performance test case: dot_performance_world.gv
This file has been truncated, but you can view the full file.
/***********************************************************************
this command:
f=dot_performance_world.gv
F=${f%.*};
time -p dot $f -Tsvg -v -Gnslimit=2 -Gmclimit=.22 -Gremincross=false -Gsearchsize=20 -Gsplines=false -o$F.svg
Produced these timings:
real 3415.88
user 3414.92
@steveroush
steveroush / dot_performance_view.gv
Last active February 9, 2026 21:36
Graphviz / dot performance test case: dot_performance_view.gv
This file has been truncated, but you can view the full file.
/***********************************************************************
this command:
f=dot_performance_view.gv
F=${f%.*};
time -p dot $f -Tsvg -v -Gnslimit=2 -Gmclimit=.22 -Gremincross=false -Gsearchsize=20 -Gsplines=false -o$F.svg
Produced these timings:
real 94.91
user 94.73
@steveroush
steveroush / dot_performance_veryWide0.gv
Last active February 9, 2026 21:36
Graphviz / dot performance test case: dot_performance_veryWide0.gv
/***********************************************************************
this command:
f=dot_performance_veryWide0.gv
F=${f%.*};
time -p dot $f -Tsvg -v -Gnslimit=2 -Gmclimit=.22 -Gremincross=false -Gsearchsize=20 -Gsplines=false -o$F.svg
Produced these timings:
real 26.27
user 25.79
@steveroush
steveroush / dot_performance_usefulexample.gv
Last active February 9, 2026 21:36
Graphviz / dot performance test case: dot_performance_usefulexample.gv
/***********************************************************************
this command:
f=dot_performance_usefulexample.gv
F=${f%.*};
time -p dot $f -Tsvg -v -Gnslimit=2 -Gmclimit=.22 -Gremincross=false -Gsearchsize=20 -Gsplines=false -o$F.svg
Produced these timings:
real 0.08
user 0.07
@steveroush
steveroush / dot_performance_universe.gv
Last active February 9, 2026 21:35
Graphviz / dot performance test case: dot_performance_universe.gv
This file has been truncated, but you can view the full file.
/***********************************************************************
this command:
f=dot_performance_universe.gv
F=${f%.*};
time -p dot $f -Tsvg -v -Gnslimit=2 -Gmclimit=.22 -Gremincross=false -Gsearchsize=20 -Gsplines=false -o$F.svg
Produced these timings:
real 107.48
user 107.68
@steveroush
steveroush / dot_performance_tests1172_1.gv
Last active February 9, 2026 21:35
Graphviz / dot performance test case: dot_performance_tests1172_1.gv
/***********************************************************************
this command:
f=dot_performance_tests1172_1.gv
F=${f%.*};
time -p dot $f -Tsvg -v -Gnslimit=2 -Gmclimit=.22 -Gremincross=false -Gsearchsize=20 -Gsplines=false -o$F.svg
Produced these timings:
real 45.93
user 46.91
@steveroush
steveroush / dot_performance_shorterGraph1.gv
Last active February 9, 2026 21:35
Graphviz / dot performance test case: dot_performance_shorterGraph1.gv
/***********************************************************************
this command:
f=dot_performance_shorterGraph1.gv
F=${f%.*};
time -p dot $f -Tsvg -v -Gnslimit=2 -Gmclimit=.22 -Gremincross=false -Gsearchsize=20 -Gsplines=false -o$F.svg
Produced these timings:
real 3.87
user 4.00