This file contains 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
/******************************************************************** | |
see help below | |
********************************************************************/ | |
BEGIN{ | |
graph_t tmpG, aGraph, Root; //, Cluster[]; | |
edge_t newE; | |
node_t aNode, tNode, hNode; | |
graph_t tailCluster, headCluster; | |
int i, Gcnt; | |
string BB[]; |
This file contains 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
#set -x | |
:<<"__COMMENT__" | |
improveSVG.sh - | |
a program to improve the font usage / text placement in SVG files created by Graphviz programs. | |
usage: | |
# if the resulting SVG file will only be used on this computer | |
bash improveSVG.sh myFile.gv > myFile.svg |
This file contains 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
# set -x | |
T=svg | |
usage() { # Function: Print a help message. | |
echo "Usage: $0 [ -G|N|E GraphvizOption ] [ -L layoutEngine ] [ -T outputFormat ] myFile.gv" 1>&2 | |
} | |
exit_abnormal() { # Function: Exit with error. | |
usage | |
exit 1 | |
} |
This file contains 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
/************************************************************************** | |
add a grid to a graph in .dot format | |
**************************************************************************/ | |
BEGIN{ | |
int i, Indx, bcnt, LR; | |
string Type, Val, Gcolor[], Gstyle[], Gsize[], tmpstr; | |
string Hcolor, Vcolor, Hstyle, Vstyle, gridType, gridAlign; | |
float Hsize, Vsize, deltaX, deltaY, minX, minY, maxX, maxY; |
This file contains 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
/***************************************************** | |
Name: roundedOrtho.gvpr | |
As of Date: 2024-08-25 20:24:11 | |
Description: when possible, changes ortho edges to round the squared edges | |
Usage: dot -Gsplines=ortho myFile.gv | gvpr -cf roundedOrtho2.gvpr|neato -n2 -T... |
This file contains 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
/********************************************************************** | |
justify nodes that are on the same rank | |
- add a new "rankjustify" to any nodes you want "justified" | |
- legal values: t,b,l,r,min,max (for top, bottom, left, right, min, and max) | |
usage: | |
dot myFile.gv | gvpr -cf justifyRanks.gvpr | neato -n ... | |
**********************************************************************/ |
This file contains 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
/************************************************************************** | |
add a grid to a graph in .dot format | |
**************************************************************************/ | |
BEGIN{ | |
int i, Indx, bcnt, LR; | |
string Type, Val, Gcolor[], Gstyle[], Gsize[], tmpstr; | |
string Hcolor, Vcolor, Hstyle, Vstyle, gridType, gridAlign; | |
float Hsize, Vsize, deltaX, deltaY, minX, minY, maxX, maxY; |
This file contains 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
/************************************************************************* | |
swimlanes | |
- for more info on swim lanes: https://en.wikipedia.org/wiki/Swim_lane | |
- new attributes, all at the parent cluster-level: | |
- swimlanePool=true/false/[0-9]+ - turns on swimlane algorithm | |
- if having nested swimlanes is desirable, true/false is | |
insufficient. Instead, use swimlane=someuniquename | |
- swimlaneequalSize=true/false all lanes given same width, or width determined "naturally" by dot |
NewerOlder