This file contains hidden or 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
/********************************************************************************** | |
compressCluster.gvpr - replace one or more clusters (and contents) with single node(s) | |
see help below | |
**********************************************************************************/ | |
BEGIN{ | |
graph_t aGraph, Root, Parent[], gList[]; | |
node_t aNode, newNode, saveNode[]; | |
edge_t newE; | |
string cStr, newStr, newName[]; | |
int i, OK, DeleteN[], DeleteG[], cName[]; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
NewerOlder