/usr/share/graphviz/gvpr
/* Collapse all edges with same group attribute into a single edge */ BEG_G { int seen[string]; $O = $; // Use the input graph as output. } E { if (collapse == "") return; // If no collapse, ignore. if (seen[collapse]) delete ($G, $); // If already seen an edge with this collapse value, // delete the edge. else seen[collapse] = 1; // Else mark collapse value as seen and keep edge. }
.
Edit
..
Edit
addedges
Edit
addranks
Edit
addrings
Edit
anon
Edit
attr
Edit
bb
Edit
bbox
Edit
binduce
Edit
bipart
Edit
chkclusters
Edit
chkedges
Edit
cliptree
Edit
col
Edit
collapse
Edit
color
Edit
cycle
Edit
dechain
Edit
deghist
Edit
deledges
Edit
delmulti
Edit
delnodes
Edit
depath
Edit
dijkstra
Edit
flatten
Edit
get-layers-list
Edit
group
Edit
histogram
Edit
indent
Edit
knbhd
Edit
maxdeg
Edit
path
Edit
rotate
Edit
scale
Edit
scalexy
Edit
span
Edit
topon
Edit
treetoclust
Edit